diff options
| author | 2015-05-09 13:32:17 +0200 | |
|---|---|---|
| committer | 2015-05-09 13:32:17 +0200 | |
| commit | 9d92ec30a7b14f2699c04ac3b34f4a9042763c07 (patch) | |
| tree | 067e8a2b034e5f87210f8b7bf2d34731f0028cd8 /app/Models/EntryDAO.php | |
| parent | 8759fa6c6801f8260f0cc673005a2ecf994726f9 (diff) | |
| parent | 71c4c3da5eb78f9146f70e4c1c7690157d6bce63 (diff) | |
Merge branch 'FreshRSS/dev' into dev
Diffstat (limited to 'app/Models/EntryDAO.php')
| -rw-r--r-- | app/Models/EntryDAO.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/app/Models/EntryDAO.php b/app/Models/EntryDAO.php index 543b61573..ebaeb3868 100644 --- a/app/Models/EntryDAO.php +++ b/app/Models/EntryDAO.php @@ -538,11 +538,13 @@ class FreshRSS_EntryDAO extends Minz_ModelPdo implements FreshRSS_Searchable { } } if ($filter->getSearch()) { - $search .= 'AND ' . $this->sqlconcat('e1.title', $this->isCompressed() ? 'UNCOMPRESS(content_bin)' : 'content') . ' LIKE ? '; - $values[] = "%{$filter->getSearch()}%"; + $search_values = $filter->getSearch(); + foreach ($search_values as $search_value) { + $search .= 'AND ' . $this->sqlconcat('e1.title', $this->isCompressed() ? 'UNCOMPRESS(content_bin)' : 'content') . ' LIKE ? '; + $values[] = "%{$search_value}%"; + } } } - return array($values, 'SELECT e1.id FROM `' . $this->prefix . 'entry` e1 ' . ($joinFeed ? 'INNER JOIN `' . $this->prefix . 'feed` f ON e1.id_feed=f.id ' : '') |
