Stricter array check to prevent PHP notices
This commit is contained in:
parent
9327d28bc4
commit
e7f5aa7f91
|
@ -1,3 +1,7 @@
|
||||||
|
3.57:
|
||||||
|
----
|
||||||
|
Stricter array check to prevent PHP notices
|
||||||
|
|
||||||
3.56:
|
3.56:
|
||||||
-----
|
-----
|
||||||
Removed obsolete language attribute. (yellowled)
|
Removed obsolete language attribute. (yellowled)
|
||||||
|
|
|
@ -72,7 +72,7 @@ class serendipity_event_freetag extends serendipity_event
|
||||||
'smarty' => '2.6.7',
|
'smarty' => '2.6.7',
|
||||||
'php' => '4.1.0'
|
'php' => '4.1.0'
|
||||||
));
|
));
|
||||||
$propbag->add('version', '3.56');
|
$propbag->add('version', '3.57');
|
||||||
$propbag->add('event_hooks', array(
|
$propbag->add('event_hooks', array(
|
||||||
'frontend_fetchentries' => true,
|
'frontend_fetchentries' => true,
|
||||||
'frontend_fetchentry' => true,
|
'frontend_fetchentry' => true,
|
||||||
|
@ -1071,7 +1071,11 @@ addLoadEvent(enableAutocomplete);
|
||||||
$showtag = serendipity_db_escape_string(urldecode($serendipity['GET']['tag']));
|
$showtag = serendipity_db_escape_string(urldecode($serendipity['GET']['tag']));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (is_array($showtag)) {
|
||||||
|
$arr_showtag = $showtag;
|
||||||
|
} else {
|
||||||
$arr_showtag = explode(';', $showtag);
|
$arr_showtag = explode(';', $showtag);
|
||||||
|
}
|
||||||
$multimode = 'and';
|
$multimode = 'and';
|
||||||
if (count($arr_showtag) > 1) {
|
if (count($arr_showtag) > 1) {
|
||||||
$showtag = $arr_showtag;
|
$showtag = $arr_showtag;
|
||||||
|
|
Loading…
Reference in a new issue