Bug EntryDAO filter

https://github.com/FreshRSS/FreshRSS/issues/850
This commit is contained in:
Alexandre Alapetite committed 2015-05-24 01:49:13 +02:00
1 parent 70384b3c99
commit 9d55ee5ae9
1 file changed
+1 -1
+1 -1
View File
@@ -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()}%";