Forráskód Böngészése

Prevent PHP notices when possible values is not given

pdontthink 17 éve
szülő
commit
a86bb98740
1 módosított fájl, 2 hozzáadás és 0 törlés
  1. 2 0
      functions/options.php

+ 2 - 0
functions/options.php

@@ -590,6 +590,8 @@ class SquirrelOption {
                 $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);