Explorar o código

Guarantee we have an array

pdontthink %!s(int64=17) %!d(string=hai) anos
pai
achega
a721549ba5
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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));