From 47178fb4634514848fdbe7904bb00146131ae9cc Mon Sep 17 00:00:00 2001 From: garvinhicking Date: Tue, 25 Apr 2006 14:31:54 +0000 Subject: [PATCH] no offsets --- 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 2ceb05c..4e23b51 100644 --- a/include/functions.inc.php +++ b/include/functions.inc.php @@ -1110,7 +1110,7 @@ function &serendipity_pickKey(&$array, $key, $default) { } foreach($array AS $child) { - if (isset($child[$key]) && !empty($child[$key])) { + if (is_array($child) && isset($child[$key]) && !empty($child[$key])) { return $child[$key]; } } -- 2.39.5