Ver Fonte

Change test to verify if there is a filter

Alexis Degrugillier há 11 anos atrás
pai
commit
e897afa7cc
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      app/Models/EntryDAO.php

+ 1 - 1
app/Models/EntryDAO.php

@@ -441,7 +441,7 @@ class FreshRSS_EntryDAO extends Minz_ModelPdo {
 			$where .= 'AND e1.id >= ' . $date_min . '000000 ';
 			$where .= 'AND e1.id >= ' . $date_min . '000000 ';
 		}
 		}
 		$search = '';
 		$search = '';
-		if ($filter instanceof FreshRSS_Search) {
+		if ($filter !== null) {
 			if ($filter->getIntitle()) {
 			if ($filter->getIntitle()) {
 				$search .= 'AND e1.title LIKE ? ';
 				$search .= 'AND e1.title LIKE ? ';
 				$values[] = "%{$filter->getIntitle()}%";
 				$values[] = "%{$filter->getIntitle()}%";