From be582713feb960f13521d2b19adcb87b3a47ada3 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Tue, 31 Mar 2020 17:57:05 +0200 Subject: Fix action filter when filtering on author (#2863) #fix https://github.com/FreshRSS/FreshRSS/issues/2806 Bug: array instead of string --- app/Models/Entry.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/Models/Entry.php') 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()) { -- cgit v1.2.3