Skip to content

Commit

Permalink
Merge b142472 into fb60b92
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonasik committed Nov 15, 2018
2 parents fb60b92 + b142472 commit e9493e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -1114,7 +1114,7 @@ protected function doProtectFields($data)
throw DataException::forInvalidAllowedFields(get_class($this));
}

if (is_array($data) && count($data))
if (is_array($data) && $data)
{
foreach ($data as $key => $val)
{
Expand Down

0 comments on commit e9493e7

Please sign in to comment.