Log database errors instead of showing them.

display_errors is off unless DISPLAY_ERRORS is set in .env.
This commit is contained in:
tim
2026-09-25 21:57:11 +02:00
parent bcba2e1ca3
commit f97bdecbc1
9 changed files with 40 additions and 16 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ header("Content-Type: application/rss+xml");
// Set up a RSS "header"
$query = "SELECT MAX(`date`) FROM $table;";
$result = $db->query($query) or die("Query failed : ".$db->error);
$result = $db->query($query) or db_fail();
$most_recent = $result->fetch_row();
$now = date("D, d M Y H:i:s O");