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

functions/options.php

index d05f3af7ee705c536ae3cd093ba1ba97dd250f1c..036e43c7589f9278435e5d10964cc1a5847f3599 100644 (file)
@@ -591,6 +591,7 @@ class SquirrelOption {
         }
 
         if (empty($this->possible_values)) $this->possible_values = array();
+        if (!is_array($this->possible_values)) $this->possible_values = array($this->possible_values);
 
 //FIXME: $this->aExtraAttribs probably should only be used in one place
         $oTemplate->assign('input_widget', addInput('add_' . $this->name, '', 38, 0, $this->aExtraAttribs));