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
This commit is contained in:
Alexandre Alapetite authored and GitHub committed 2023-12-06 11:58:49 +01:00
1 parent 8bff77c45e
commit 803fa8fdb5
1 file changed
+1 -1
+1 -1
View File
@@ -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(),