Guarantee we have an array
authorpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 28 Feb 2008 05:29:18 +0000 (05:29 +0000)
committerpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 28 Feb 2008 05:29:18 +0000 (05:29 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@12974 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/options.php

index 872b398..d05f3af 100644 (file)
@@ -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 ($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
         //
 
         // add element if given
         //