Commit 605c2d9e by Alexander Kochetov

yii\base\Model::load() typo fix

parent cc3209cf
...@@ -761,7 +761,7 @@ class Model extends Component implements IteratorAggregate, ArrayAccess, Arrayab ...@@ -761,7 +761,7 @@ class Model extends Component implements IteratorAggregate, ArrayAccess, Arrayab
public function load($data, $formName = null) public function load($data, $formName = null)
{ {
$scope = $formName === null ? $this->formName() : $formName; $scope = $formName === null ? $this->formName() : $formName;
if ($scope == '' && !empty($data)) { if ($scope === '' && !empty($data)) {
$this->setAttributes($data); $this->setAttributes($data);
return true; return true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment