serendipity_event_freetag PHP warning

Creating and modifying plugins.
Post Reply
gregman
Regular
Posts: 91
Joined: Wed Aug 15, 2007 9:32 pm

serendipity_event_freetag PHP warning

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

Re: serendipity_event_freetag PHP warning

Post by garvinhicking »

Hi!

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

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