Page 1 of 1

serendipity_event_freetag PHP warning

Posted: Fri May 04, 2012 9:45 am
by gregman
Hi there,

serendipity_event_freetag causes a PHP warning "Cannot use a scalar value as an array" on lines 1224+ when extended_smarty is set to true and categories page is called with no entry to print (for some reason in this scenario $eventData is 1). I could fix this by adding

Code: Select all

if (!is_array($eventData)) {
    $eventData = array();
}
before the methods call on line 1189.

Regards
Greg

Re: serendipity_event_freetag PHP warning

Posted: Sun May 06, 2012 8:25 pm
by garvinhicking
Hi!

Great, thanks for the heads up. Just committed! :)

Regards,
Garvin