Warning message calling static pages whith podcast installed

Found a bug? Tell us!!
Post Reply
heddesheimer
Regular
Posts: 37
Joined: Mon Sep 12, 2005 3:44 pm

Warning message calling static pages whith podcast installed

Post 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
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Warning message calling static pages whith podcast insta

Post by garvinhicking »

Thanks a lot for catching this bug. I've just committed a fix!

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply