فهرست منبع

Prevent PHP notices when possible values is not given

pdontthink 17 سال پیش
والد
کامیت
a86bb98740
1فایلهای تغییر یافته به همراه2 افزوده شده و 0 حذف شده
  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);