Skip to content

Commit 3b40260

Browse files
committed
Add a parameter expected by mysqli_error()
1 parent 7847a66 commit 3b40260

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extras/core.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
// die if SQL statement failed
4747
if (!$result) {
4848
http_response_code(404);
49-
die(mysqli_error());
49+
die(mysqli_error($link));
5050
}
5151

5252
// print results, insert id or affected row count

0 commit comments

Comments
 (0)