Commit 93bce350 by Qiang Xue

Merge pull request #6693 from creocoder/model-typo-fix

yii\base\Model::load() typo fix
parents cc3209cf 605c2d9e
......@@ -761,7 +761,7 @@ class Model extends Component implements IteratorAggregate, ArrayAccess, Arrayab
public function load($data, $formName = null)
{
$scope = $formName === null ? $this->formName() : $formName;
if ($scope == '' && !empty($data)) {
if ($scope === '' && !empty($data)) {
$this->setAttributes($data);
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