Page 1 of 1

Warning message calling static pages whith podcast installed

Posted: Thu Oct 06, 2005 3:35 pm
by heddesheimer
Hi,

found a bug in the podcast plugin. When I have installed podcast plugin and I call up a static page from the static-pages plugin I get this warning:

Warning: Cannot use a scalar value as an array in /home/marian/public_html/blog/plugins/serendipity_event_podcast/serendipity_event_podcast.php on line 260

I have solved it by changing this part of the code:

Code: Select all

                foreach ($eventData as $entryPos => $entry){

                    if ($tagging_switch == 'podcast') {
                        if (is_array($eventData[$entryPos]))
                        {
                            $eventData[$entryPos]['body'] = preg_replace(
                                $mediaLinkPattern,
                                '<a href="\4\5">\5</a>',
                                $entry['body']);

                            $eventData[$entryPos]['extended'] = preg_replace(
                                $mediaLinkPattern,
                                '<a href="\4\5">\5</a>',
                                $entry['extended']);
                        }
                    }
Marian

Re: Warning message calling static pages whith podcast insta

Posted: Thu Oct 06, 2005 3:40 pm
by garvinhicking
Thanks a lot for catching this bug. I've just committed a fix!

Regards,
Garvin