From f0f19e338aa175c49712a3a036355cc902a2357f Mon Sep 17 00:00:00 2001 From: Antonio Ramirez Date: Tue, 21 May 2013 13:28:08 +0200 Subject: [PATCH] comparison swapped --- yii/bootstrap/TypeAhead.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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' );