Guarantee we have an array
[squirrelmail.git] / functions / options.php
index 872b398fd515a882404dade901249bf3ee6b15d2..d05f3af7ee705c536ae3cd093ba1ba97dd250f1c 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 (!is_array($option->possible_values)) $option->possible_values = array($option->possible_values);
 
         // add element if given
         //