diff --git a/ActiveRecord.php b/ActiveRecord.php index 16b75cfe2..db6ab3fd5 100644 --- a/ActiveRecord.php +++ b/ActiveRecord.php @@ -137,7 +137,7 @@ public function insert($runValidation = true, $attributes = null) } } - if (count($setArgs) > 1) { + if (!empty($setArgs)) { $db->executeCommand('HMSET', [$key, $setArgs]); }