Log database errors instead of showing them.
display_errors is off unless DISPLAY_ERRORS is set in .env.
This commit is contained in:
+1
-1
@@ -60,7 +60,7 @@ function display_img($id) {
|
||||
}
|
||||
|
||||
$query = "SELECT img, mime FROM $table WHERE 1 AND ID = ?".$hidden." LIMIT 0, 1";
|
||||
$result = $db->execute_query($query, array((int)$id)) or die("Query failed : ".$db->error);
|
||||
$result = $db->execute_query($query, array((int)$id)) or db_fail();
|
||||
|
||||
$row = $result->fetch_assoc();
|
||||
if ($row) {
|
||||
|
||||
Reference in New Issue
Block a user