From 6c2cf9a268f6adbc205d0494cfeada4be9374332 Mon Sep 17 00:00:00 2001 From: Qiang Xue Date: Mon, 1 Jul 2013 07:14:28 -0400 Subject: [PATCH] Removed redundant code. --- framework/yii/base/Model.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/framework/yii/base/Model.php b/framework/yii/base/Model.php index 553f2e8..462b31d 100644 --- a/framework/yii/base/Model.php +++ b/framework/yii/base/Model.php @@ -160,10 +160,8 @@ class Model extends Component implements \IteratorAggregate, \ArrayAccess { $attributes = array(); foreach ($this->getActiveValidators() as $validator) { - if ($validator->isActive('default')) { - foreach ($validator->attributes as $name) { - $attributes[$name] = true; - } + foreach ($validator->attributes as $name) { + $attributes[$name] = true; } } return array(