Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Error when creating empty RSS feed on PHP 8
When the feed is empty, ObjectIterator::size() throws a TypeError exception on PHP 8.0+ (and a Warning on PHP 7.2+) due to calling count() on $this->objectlist->objects, which is null in this case. Initializing the ObjectList::$objects property to an empty array ensures this never happens. File was converted to UTF-8 and trailing ?> removed. Fixes #33634
- Loading branch information
Showing
2 changed files
with
7 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters