@@ 2723-2729 (lines=7) @@ | ||
2720 | $query .= ')'; |
|
2721 | $needAndOp = true; |
|
2722 | } |
|
2723 | if ((!empty($date)) && PMF_Utils::isLikeOnPMFDate($date)) { |
|
2724 | if ($needAndOp) { |
|
2725 | $query .= ' AND'; |
|
2726 | } |
|
2727 | $query .= " fd.updated LIKE '".$date."'"; |
|
2728 | $needAndOp = true; |
|
2729 | } |
|
2730 | if ((!empty($lang)) && PMF_Utils::isLanguage($lang)) { |
|
2731 | if ($needAndOp) { |
|
2732 | $query .= ' AND'; |
|
@@ 2730-2736 (lines=7) @@ | ||
2727 | $query .= " fd.updated LIKE '".$date."'"; |
|
2728 | $needAndOp = true; |
|
2729 | } |
|
2730 | if ((!empty($lang)) && PMF_Utils::isLanguage($lang)) { |
|
2731 | if ($needAndOp) { |
|
2732 | $query .= ' AND'; |
|
2733 | } |
|
2734 | $query .= " fd.lang = '".$lang."'"; |
|
2735 | $needAndOp = true; |
|
2736 | } |
|
2737 | switch ($QueryType) { |
|
2738 | case FAQ_QUERY_TYPE_APPROVAL: |
|
2739 | if ($needAndOp) { |