Skip to content

A free, self-hostable news aggregator…

Fix PHP7 susbtr (#5929)

Alexandre Alapetite803fa8fdb50c
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(),