From 97c20b2f587c8569167eaaef5179cf16f58d892f Mon Sep 17 00:00:00 2001 From: pdontthink Date: Wed, 9 May 2012 02:57:02 +0000 Subject: [PATCH] Fix occasional PHP notice git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@14324 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/html.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/html.php b/functions/html.php index f8dafc9b..edacc1ee 100644 --- a/functions/html.php +++ b/functions/html.php @@ -390,7 +390,7 @@ function set_url_var($url, $var, $val=null, $link=true, $treat_as_array=false) { $p = explode('=', $p); $newpar[$p[0]] = (isset($p[1]) ? $p[1] : ''); if ($treat_as_array && preg_match('/(.*)\[(\d+)]$/', $p[0], $matches)) { - if (!is_array($array_names[$matches[1]])) $array_names[$matches[1]] = array(); + if (!isset($array_names[$matches[1]])) $array_names[$matches[1]] = array(); $array_names[$matches[1]][$matches[2]] = $p[1]; } } -- 2.25.1