serendipity_event_freetag PHP warning
Posted: Fri May 04, 2012 9:45 am
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
before the methods call on line 1189.
Regards
Greg
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();
}
Regards
Greg