Skip to content
Snippets Groups Projects
Commit df84df43 authored by klimnad's avatar klimnad
Browse files

Update include/staff/faq-categories.inc.php

here is speak about this 
https://github.com/osTicket/osTicket-1.7/issues/44
parent 92379f2e
No related branches found
No related tags found
No related merge requests found
......@@ -61,7 +61,7 @@ if($_REQUEST['q'] || $_REQUEST['cid'] || $_REQUEST['topicId']) { //Search.
$sql.=' AND faq.category_id='.db_input($_REQUEST['cid']);
if($_REQUEST['q'])
$sql.=" AND MATCH(question,answer,keywords) AGAINST ('".db_input($_REQUEST['q'],false)."')";
$sql.=" AND question LIKE ('%".db_input($_REQUEST['q'],false)."%') OR answer LIKE ('%".db_input($_REQUEST['q'],false)."%') OR keywords LIKE ('%".db_input($_REQUEST['q'],false)."%')";
$sql.=' GROUP BY faq.faq_id';
echo "<div><strong>Search Results</strong></div><div class='clear'></div>";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment