X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=functions%2Foptions.php;h=872b398fd515a882404dade901249bf3ee6b15d2;hp=78e0bea067e1ea3437e6abe0f42fb0ef5729c87b;hb=8eb63bb676660525dd27c6b9b50f0a9b4ac96a82;hpb=8abb7e3a2052423e641a320be203a58a610cf0b1 diff --git a/functions/options.php b/functions/options.php index 78e0bea0..872b398f 100644 --- a/functions/options.php +++ b/functions/options.php @@ -647,6 +647,8 @@ function save_option($option) { // if ($option->type == SMOPT_TYPE_EDIT_LIST) { + if (empty($option->possible_values)) $option->possible_values = array(); + // add element if given // if (sqGetGlobalVar('add_' . $option->name, $new_element, SQ_POST)) {