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
2023-12-06 11:58:49 +01:00
committed by GitHub
parent 8bff77c45e
commit 803fa8fdb5

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