Browse Source

Removed redundant code.

tags/2.0.0-beta
Qiang Xue 12 years ago
parent
commit
6c2cf9a268
  1. 6
      framework/yii/base/Model.php

6
framework/yii/base/Model.php

@ -160,10 +160,8 @@ class Model extends Component implements \IteratorAggregate, \ArrayAccess
{ {
$attributes = array(); $attributes = array();
foreach ($this->getActiveValidators() as $validator) { foreach ($this->getActiveValidators() as $validator) {
if ($validator->isActive('default')) { foreach ($validator->attributes as $name) {
foreach ($validator->attributes as $name) { $attributes[$name] = true;
$attributes[$name] = true;
}
} }
} }
return array( return array(

Loading…
Cancel
Save