Fix for search regression introduced by rename of NOTICE_GATEWAY to Notice::Gateway in commit 5f7fb99447

This commit is contained in:
brion 2009-08-16 11:41:00 -07:00
parent b0bb1fff2e
commit aedcb0199b

View File

@ -120,7 +120,7 @@ class MySQLSearch extends SearchEngine
} else if ('identica_notices' === $this->table) {
// Don't show imported notices
$this->target->whereAdd('notice.is_local != ' . NOTICE_GATEWAY);
$this->target->whereAdd('notice.is_local != ' . Notice::GATEWAY);
if (strtolower($q) != $q) {
$this->target->whereAdd("( MATCH(content) AGAINST ('" . addslashes($q) .