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']);
}
}