File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ class Select2Widget extends \yii\widgets\InputWidget
4545 * @see \yii\helpers\BaseArrayHelper::map()
4646 * @var array
4747 */
48- public $ items = [] ;
48+ public $ items ;
4949 /**
5050 * A placeholder value can be defined and will be displayed until a selection is made
5151 * @var string
@@ -74,7 +74,7 @@ public function init()
7474 {
7575 parent ::init ();
7676
77- if (empty ($ this ->items ) && empty ($ this ->data ) && empty ($ this ->ajax ) && empty ($ this ->settings ['data ' ])) {
77+ if (is_null ($ this ->items ) && is_null ($ this ->data ) && empty ($ this ->ajax ) && empty ($ this ->settings ['data ' ])) {
7878 throw new InvalidConfigException ('You need to configute one of the data sources ' );
7979 }
8080 if (isset ($ this ->tags )) {
Original file line number Diff line number Diff line change 1717 ],
1818 "extra" : {
1919 "branch-alias" : {
20- "dev-master" : " 1.3.1 .x-dev"
20+ "dev-master" : " 1.3.2 .x-dev"
2121 }
2222 },
2323 "require" : {
You can’t perform that action at this time.
0 commit comments