diff --git a/library/README.md b/library/README.md index 22d55515a1..74265d41fd 100644 --- a/library/README.md +++ b/library/README.md @@ -6,9 +6,9 @@ The version and status of each is summarized below: ## PHP libraries -| directory | project | version | status | -|------------|------------|---------|----------------| -| rssbuilder | RSSBuilder | 2.2.1 | patched [1][2] | +| directory | project | version | status | +|------------|------------|---------|---------------------| +| rssbuilder | RSSBuilder | 2.2.1 | patched [1],[2],[4] | ## Javascript/CSS libraries @@ -30,10 +30,10 @@ The version and status of each is summarized below: **Notes** 1. removed `__autoload` function -2. fixed SYSTEM NOTICE 'Only variables should be passed by reference' +2. fixed SYSTEM NOTICE 'Only variables should be passed by reference' (#25213) 3. fixed scrolling regression in navigation buttons, patch submitted upstream https://github.com/javve/list.js/pull/750 - +4. fixed TypeError when creating empty feed on PHP 8 (#33634) ## Upstream projects diff --git a/library/rssbuilder/class.ObjectIterator.inc.php b/library/rssbuilder/class.ObjectIterator.inc.php index 59dc9785af..927ab1bff2 100644 --- a/library/rssbuilder/class.ObjectIterator.inc.php +++ b/library/rssbuilder/class.ObjectIterator.inc.php @@ -3,7 +3,7 @@ * Class for creating an RSS-feed * @author Michael Wimmer * @category flaimo-php -* @copyright Copyright © 2002-2008, Michael Wimmer +* @copyright Copyright © 2002-2008, Michael Wimmer * @license GNU General Public License v3 * @link http://code.google.com/p/flaimo-php/ * @package RSS @@ -36,6 +36,7 @@ public function key() { } // end function public function size() { + if ($this->objectlist->objects === null) return 0; return count($this->objectlist->objects); } // end function @@ -43,4 +44,3 @@ public function rewind() { $this->current = 0; } // end function } // end class -?>