Stricter array check to prevent PHP notices

This commit is contained in:
Garvin Hicking 2014-07-11 12:01:56 +02:00
parent 9327d28bc4
commit e7f5aa7f91
2 changed files with 10 additions and 2 deletions

View file

@ -1,3 +1,7 @@
3.57:
----
Stricter array check to prevent PHP notices
3.56:
-----
Removed obsolete language attribute. (yellowled)

View file

@ -72,7 +72,7 @@ class serendipity_event_freetag extends serendipity_event
'smarty' => '2.6.7',
'php' => '4.1.0'
));
$propbag->add('version', '3.56');
$propbag->add('version', '3.57');
$propbag->add('event_hooks', array(
'frontend_fetchentries' => true,
'frontend_fetchentry' => true,
@ -1071,7 +1071,11 @@ addLoadEvent(enableAutocomplete);
$showtag = serendipity_db_escape_string(urldecode($serendipity['GET']['tag']));
}
$arr_showtag = explode(';', $showtag);
if (is_array($showtag)) {
$arr_showtag = $showtag;
} else {
$arr_showtag = explode(';', $showtag);
}
$multimode = 'and';
if (count($arr_showtag) > 1) {
$showtag = $arr_showtag;