Skip to content

Commit

Permalink
Revert "Fix Error when creating empty RSS feed on PHP 8"
Browse files Browse the repository at this point in the history
This reverts commit 0e241f3.
  • Loading branch information
dregad committed Feb 13, 2024
1 parent 0e241f3 commit 7dcb81c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions library/README.md
Expand Up @@ -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],[4] |
| directory | project | version | status |
|------------|------------|---------|----------------|
| rssbuilder | RSSBuilder | 2.2.1 | patched [1][2] |


## Javascript/CSS libraries
Expand All @@ -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' (#25213)
2. fixed SYSTEM NOTICE 'Only variables should be passed by reference'
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
Expand Down
4 changes: 2 additions & 2 deletions library/rssbuilder/class.ObjectIterator.inc.php
Expand Up @@ -3,7 +3,7 @@
* Class for creating an RSS-feed
* @author Michael Wimmer <flaimo@gmail.com>
* @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
Expand Down Expand Up @@ -36,11 +36,11 @@ public function key() {
} // end function

public function size() {
if ($this->objectlist->objects === null) return 0;
return count($this->objectlist->objects);
} // end function

public function rewind() {
$this->current = 0;
} // end function
} // end class
?>

0 comments on commit 7dcb81c

Please sign in to comment.