]> git.mjollnir.org Git - s9y.git/commitdiff
fix bug #1586289, strict array check
authorgarvinhicking <garvinhicking>
Mon, 30 Oct 2006 14:21:36 +0000 (14:21 +0000)
committergarvinhicking <garvinhicking>
Mon, 30 Oct 2006 14:21:36 +0000 (14:21 +0000)
include/functions.inc.php

index b0b396a03dbf8e6fb90bf5eecb63eb43cd04cb5c..535eede12a9f4aa747e5ba1b4062f0e983d61667 100644 (file)
@@ -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();
     }