aboutsummaryrefslogtreecommitdiff
path: root/app/Models/Entry.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2020-03-31 17:57:05 +0200
committerGravatar GitHub <noreply@github.com> 2020-03-31 17:57:05 +0200
commitbe582713feb960f13521d2b19adcb87b3a47ada3 (patch)
tree49944794bcda85ba82b66741ada082663382d17b /app/Models/Entry.php
parentcedbbff58236dd77cd31c2eaf6845a5d059e47f2 (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.php4
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()) {