Skip to content

Commit

Permalink
fix check setArgs on insert
Browse files Browse the repository at this point in the history
  • Loading branch information
andruha committed May 11, 2016
1 parent 66a4bd5 commit 4c466a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ActiveRecord.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ public function insert($runValidation = true, $attributes = null)
}
}

if (count($setArgs) > 1) {
if (!empty($setArgs)) {
$db->executeCommand('HMSET', [$key, $setArgs]);
}

Expand Down

0 comments on commit 4c466a2

Please sign in to comment.