From: pdontthink Date: Thu, 28 Feb 2008 05:29:18 +0000 (+0000) Subject: Guarantee we have an array X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=commitdiff_plain;h=95dbbd91f7d7858cb05de5c3090b82ce14b4fd99;hp=8eb63bb676660525dd27c6b9b50f0a9b4ac96a82 Guarantee we have an array git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@12974 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/functions/options.php b/functions/options.php index 872b398f..d05f3af7 100644 --- a/functions/options.php +++ b/functions/options.php @@ -648,6 +648,7 @@ function save_option($option) { if ($option->type == SMOPT_TYPE_EDIT_LIST) { if (empty($option->possible_values)) $option->possible_values = array(); + if (!is_array($option->possible_values)) $option->possible_values = array($option->possible_values); // add element if given //