projects
/
squirrelmail.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Avoid PHP errors when adding to empty list
[squirrelmail.git]
/
functions
/
options.php
diff --git
a/functions/options.php
b/functions/options.php
index 78e0bea067e1ea3437e6abe0f42fb0ef5729c87b..872b398fd515a882404dade901249bf3ee6b15d2 100644
(file)
--- 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)) {