Fix action filter when filtering on author (#2863)

#fix https://github.com/FreshRSS/FreshRSS/issues/2806
Bug: array instead of string
This commit is contained in:
Alexandre Alapetite authored and GitHub committed 2020-03-31 17:57:05 +02:00
1 parent cedbbff582
commit be582713fe
1 file changed
+2 -2
+2 -2
View File
@@ -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()) {