Skip to content

Commit

Permalink
Fix PHP7 susbtr (#5929)
Browse files Browse the repository at this point in the history
fix #5928
`susbstr` might return false in PHP7
Regression from #5830
  • Loading branch information
Alkarex authored Dec 6, 2023
1 parent 8bff77c commit 803fa8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Models/Feed.php
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,7 @@ public function loadEntries(SimplePie $simplePie): Traversable {
}
}
}
$authorNames = substr($authorNames, 0, -2);
$authorNames = substr($authorNames, 0, -2) ?: '';

$entry = new FreshRSS_Entry(
$this->id(),
Expand Down

0 comments on commit 803fa8f

Please sign in to comment.