diff --git a/src/DB/QueryBuilder/Concerns/CRUD.php b/src/DB/QueryBuilder/Concerns/CRUD.php index 775512d..40f81ca 100644 --- a/src/DB/QueryBuilder/Concerns/CRUD.php +++ b/src/DB/QueryBuilder/Concerns/CRUD.php @@ -62,7 +62,7 @@ public function update( $data, $format = null ) { public function upsert( $data, $match = [], $format = null ) { // Build the where clause(s). foreach ( $match as $column ) { - $this->where( $column, $data[$column] ); + $this->where( $column, $data[ $column ] ); } // If the row exists, update it.