From 803fa8fdb50c8b98efed2b89a7adf3eb6df189d9 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Wed, 6 Dec 2023 11:58:49 +0100 Subject: 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 --- app/Models/Feed.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/Models/Feed.php') 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(), -- cgit v1.2.3