Skip to content

Commit a921329

Browse files
committed
FIX empty $values in UpsertQuery constructor.
1 parent 72457ed commit a921329

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/UpsertQuery.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public function __construct($table = null, $values = null, array $keys = [], ?ar
2020
if (isset($table)) {
2121
$this->setTable($table);
2222
}
23-
if (isset($values)) {
23+
if (!empty($values)) {
2424
$cols = isset($columns) ? array_merge($keys, $columns) : $columns;
2525
$this->setValues($values, $cols);
2626
}

0 commit comments

Comments
 (0)