Explorar o código

Bug EntryDAO filter

https://github.com/FreshRSS/FreshRSS/issues/850
Alexandre Alapetite %!s(int64=11) %!d(string=hai) anos
pai
achega
9d55ee5ae9
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/Models/EntryDAO.php

+ 1 - 1
app/Models/EntryDAO.php

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