Sfoglia il codice sorgente

Guarantee we have an array

pdontthink 17 anni fa
parent
commit
a721549ba5
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      functions/options.php

+ 1 - 0
functions/options.php

@@ -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));