Skip to content

Commit

Permalink
Forgot to add return in update method
Browse files Browse the repository at this point in the history
  • Loading branch information
joykumarbera committed Feb 1, 2023
1 parent 296ae57 commit 3cac59c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Db.php
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ public function update($table, $data = [], $conditions = [], $glue = 'AND')
$sql = "UPDATE $table SET $update_columns WHERE $where_clause";
$final_params = array_merge( array_values($data), array_values($conditions));

$this->_runQuery($sql, $final_params);
return $this->_runQuery($sql, $final_params);
}

/**
Expand Down

0 comments on commit 3cac59c

Please sign in to comment.