diff --git a/widgets/Select2.php b/widgets/Select2.php index a64bb72..489136b 100755 --- a/widgets/Select2.php +++ b/widgets/Select2.php @@ -89,7 +89,7 @@ public function init() $this->_hidden = !empty($this->pluginOptions['data']) || !empty($this->pluginOptions['query']) || !empty($this->pluginOptions['ajax']) || - !empty($this->pluginOptions['tags']); + isset($this->pluginOptions['tags']); if (!isset($this->data) && !$this->_hidden) { throw new InvalidConfigException("No 'data' source found for Select2. Either the 'data' property must be set OR one of 'data', 'query', 'ajax', or 'tags' must be set within 'pluginOptions'."); }