From: garvinhicking Date: Mon, 30 Oct 2006 14:21:36 +0000 (+0000) Subject: fix bug #1586289, strict array check X-Git-Tag: 1.1~52 X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=0b838b84aaa0cd8f3bde56742a17d59b7edaac15;p=s9y.git fix bug #1586289, strict array check --- diff --git a/include/functions.inc.php b/include/functions.inc.php index b0b396a..535eede 100644 --- a/include/functions.inc.php +++ b/include/functions.inc.php @@ -295,7 +295,7 @@ function serendipity_walkRecursive($ary, $child_name = 'id', $parent_name = 'par static $_resArray; static $_remain; - if (sizeof($ary) == 0) { + if (!is_array($ary) || sizeof($ary) == 0) { return array(); }