projects
/
squirrelmail.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Guarantee we have an array
[squirrelmail.git]
/
functions
/
options.php
diff --git
a/functions/options.php
b/functions/options.php
index 872b398fd515a882404dade901249bf3ee6b15d2..d05f3af7ee705c536ae3cd093ba1ba97dd250f1c 100644
(file)
--- 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
//