aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2023-12-06 11:58:49 +0100
committerGravatar GitHub <noreply@github.com> 2023-12-06 11:58:49 +0100
commit803fa8fdb50c8b98efed2b89a7adf3eb6df189d9 (patch)
treef6d404d18a6dbc6d1180326b1853795011cda24c
parent8bff77c45ef87322fce0854e6f189f76604f5b93 (diff)
Fix PHP7 susbtr (#5929)
fix https://github.com/FreshRSS/FreshRSS/issues/5928 `susbstr` might return false in PHP7 Regression from https://github.com/FreshRSS/FreshRSS/pull/5830
-rw-r--r--app/Models/Feed.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Models/Feed.php b/app/Models/Feed.php
index afd10909e..a379f5016 100644
--- a/app/Models/Feed.php
+++ b/app/Models/Feed.php
@@ -580,7 +580,7 @@ class FreshRSS_Feed extends Minz_Model {
}
}
}
- $authorNames = substr($authorNames, 0, -2);
+ $authorNames = substr($authorNames, 0, -2) ?: '';
$entry = new FreshRSS_Entry(
$this->id(),