diff --git a/yii/bootstrap/TypeAhead.php b/yii/bootstrap/TypeAhead.php index a907d6a..6450ca1 100644 --- a/yii/bootstrap/TypeAhead.php +++ b/yii/bootstrap/TypeAhead.php @@ -105,7 +105,7 @@ class TypeAhead extends Widget )->textInput(); } - if (null === $this->name) + if ($this->name === null) throw new InvalidParamException( get_class($this) . ' must specify "form", "model" and "attribute" or "name" property values' );