RssWriter "Illegal offset type in isset or empty in phpwiki/lib/RssWriter.php:191"

Christof Meerwald via Phpwiki-talk <[email protected]> Sun, 21 Jan 2024 10:59:18 +0100
Newsgroups gmane.comp.web.wiki.phpwiki.talk
Message-ID <[email protected]>
--3saWbZs1g6IW0wzY
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Another patch to fix atom feeds:

PHP Fatal error:  Uncaught TypeError: Illegal offset type in isset or empty in phpwiki/lib/RssWriter.php:191
Stack trace:
#0 phpwiki/lib/RssWriter.php(175): RssWriter->__uniquify_uri(Array)
#1 phpwiki/lib/RssWriter.php(269): RssWriter->__node('feed', Array, Array)
#2 phpwiki/lib/plugin/RecentChanges.php(1147): AtomFeed->feed(Array)


Christof

-- 

https://cmeerw.org                             sip:cmeerw at cmeerw.org
mailto:cmeerw at cmeerw.org                   xmpp:cmeerw at cmeerw.org

--3saWbZs1g6IW0wzY
Content-Type: text/x-diff; charset=us-ascii
Content-Disposition: attachment; filename="rsswriter-atom.diff"

Index: lib/RssWriter.php
===================================================================
--- lib/RssWriter.php	(revision 11072)
+++ lib/RssWriter.php	(working copy)
@@ -266,7 +266,7 @@
         $attr = array('xmlns' => 'http://www.w3.org/2005/Atom',
             'version' => '0.3', // or 1.0
             'lang' => $LANG);
-        $this->_channel = $this->__node('feed', $attr, $properties);
+        $this->_channel = $this->__atom_node('feed', $attr, $properties);
     }
 
     /**

--3saWbZs1g6IW0wzY
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline


--3saWbZs1g6IW0wzY
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Phpwiki-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/phpwiki-talk

--3saWbZs1g6IW0wzY--