From 95dbbd91f7d7858cb05de5c3090b82ce14b4fd99 Mon Sep 17 00:00:00 2001 From: pdontthink Date: Thu, 28 Feb 2008 05:29:18 +0000 Subject: [PATCH] Guarantee we have an array git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@12974 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/options.php | 1 + 1 file changed, 1 insertion(+) 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 // -- 2.25.1