Change test to verify if there is a filter

This commit is contained in:
Alexis Degrugillier committed 2015-02-22 17:38:33 -05:00
1 parent 74c020edc8
commit e897afa7cc
1 file changed
+1 -1
+1 -1
View File
@@ -441,7 +441,7 @@ class FreshRSS_EntryDAO extends Minz_ModelPdo {
$where .= 'AND e1.id >= ' . $date_min . '000000 ';
}
$search = '';
if ($filter instanceof FreshRSS_Search) {
if ($filter !== null) {
if ($filter->getIntitle()) {
$search .= 'AND e1.title LIKE ? ';
$values[] = "%{$filter->getIntitle()}%";