Fix HTTP 500 on live after login, unify database config in config.php, sanitize env example, and harden pentest security
This commit is contained in:
+9
-4
@@ -27,10 +27,15 @@ if ($selectedStatus !== 'ALL') {
|
||||
$params[] = $selectedStatus;
|
||||
}
|
||||
|
||||
$sql .= " ORDER BY r.quarter ASC, r.priority DESC, r.due_date ASC";
|
||||
$stmt = $db->prepare($sql);
|
||||
$stmt->execute($params);
|
||||
$roadmapItems = $stmt->fetchAll();
|
||||
$roadmapItems = [];
|
||||
try {
|
||||
$stmt = $db->prepare($sql);
|
||||
$stmt->execute($params);
|
||||
$roadmapItems = $stmt->fetchAll() ?: [];
|
||||
} catch (Throwable $e) {
|
||||
error_log("Fout bij ophalen roadmap items: " . $e->getMessage());
|
||||
ensure_tables_exist($db);
|
||||
}
|
||||
|
||||
$quarters = ['Q1', 'Q2', 'Q3', 'Q4'];
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user