Skip to content

Commit

Permalink
Merge pull request #328 from matt194/master
Browse files Browse the repository at this point in the history
Add a parameter expected by mysqli_error()
  • Loading branch information
mevdschee committed Jan 15, 2018
2 parents 7847a66 + 3b40260 commit d94ad6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extras/core.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
// die if SQL statement failed
if (!$result) {
http_response_code(404);
die(mysqli_error());
die(mysqli_error($link));
}

// print results, insert id or affected row count
Expand Down

0 comments on commit d94ad6c

Please sign in to comment.