Răsfoiți Sursa

Fix action filter when filtering on author (#2863)

#fix https://github.com/FreshRSS/FreshRSS/issues/2806
Bug: array instead of string
Alexandre Alapetite 6 ani în urmă
părinte
comite
be582713fe
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 2 2
      app/Models/Entry.php

+ 2 - 2
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()) {