Prevent PHP notices when possible values is not given
authorpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 26 Feb 2008 19:54:15 +0000 (19:54 +0000)
committerpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 26 Feb 2008 19:54:15 +0000 (19:54 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@12968 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/options.php

index 41922b5..78e0bea 100644 (file)
@@ -590,6 +590,8 @@ class SquirrelOption {
                 $height = 5;
         }
 
                 $height = 5;
         }
 
+        if (empty($this->possible_values)) $this->possible_values = array();
+
 //FIXME: $this->aExtraAttribs probably should only be used in one place
         $oTemplate->assign('input_widget', addInput('add_' . $this->name, '', 38, 0, $this->aExtraAttribs));
         $oTemplate->assign('trailing_text', $this->trailing_text);
 //FIXME: $this->aExtraAttribs probably should only be used in one place
         $oTemplate->assign('input_widget', addInput('add_' . $this->name, '', 38, 0, $this->aExtraAttribs));
         $oTemplate->assign('trailing_text', $this->trailing_text);