From 0b838b84aaa0cd8f3bde56742a17d59b7edaac15 Mon Sep 17 00:00:00 2001 From: garvinhicking Date: Mon, 30 Oct 2006 14:21:36 +0000 Subject: [PATCH] fix bug #1586289, strict array check --- include/functions.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); } -- 2.39.5