diff options
| author | 2020-03-31 17:57:05 +0200 | |
|---|---|---|
| committer | 2020-03-31 17:57:05 +0200 | |
| commit | be582713feb960f13521d2b19adcb87b3a47ada3 (patch) | |
| tree | 49944794bcda85ba82b66741ada082663382d17b /app/Models/Entry.php | |
| parent | cedbbff58236dd77cd31c2eaf6845a5d059e47f2 (diff) | |
Fix action filter when filtering on author (#2863)
#fix https://github.com/FreshRSS/FreshRSS/issues/2806
Bug: array instead of string
Diffstat (limited to 'app/Models/Entry.php')
| -rw-r--r-- | app/Models/Entry.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/Models/Entry.php b/app/Models/Entry.php index af130578f..9540e0ed5 100644 --- a/app/Models/Entry.php +++ b/app/Models/Entry.php @@ -230,12 +230,12 @@ class FreshRSS_Entry extends Minz_Model { } if ($ok && $filter->getAuthor()) { foreach ($filter->getAuthor() as $author) { - $ok &= stripos($this->authors, $author) !== false; + $ok &= stripos(implode(';', $this->authors), $author) !== false; } } if ($ok && $filter->getNotAuthor()) { foreach ($filter->getNotAuthor() as $author) { - $ok &= stripos($this->authors, $author) === false; + $ok &= stripos(implode(';', $this->authors), $author) === false; } } if ($ok && $filter->getIntitle()) { |
