From fc78398447fdcae58791dd3d8c53c3dad6152e6d Mon Sep 17 00:00:00 2001 From: Antonio Ramirez Date: Tue, 21 May 2013 16:17:45 +0200 Subject: [PATCH] fixed code style --- yii/bootstrap/TypeAhead.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/yii/bootstrap/TypeAhead.php b/yii/bootstrap/TypeAhead.php index bc2dd05..757a76e 100644 --- a/yii/bootstrap/TypeAhead.php +++ b/yii/bootstrap/TypeAhead.php @@ -107,9 +107,11 @@ class TypeAhead extends Widget } if ($this->name === null) + { throw new InvalidParamException( get_class($this) . ' must specify "form", "model" and "attribute" or "name" property values' ); + } return Html::textInput($this->name, '', $this->options); }