Fix: Error 500 on health.php and export button missing.

This commit is contained in:
Johnnybegood90 committed 2026-03-15 01:50:35 +01:00
1 parent a81e33ccb8
commit 214a2b9cc5
4 files changed
+10 -1

No files matched your search

+3 -1
View File
@@ -3,7 +3,9 @@
require_once __DIR__ . '/common.php';
function gridtv_require_admin(array $config, string $page_title = 'Admin'): array {
session_start();
if (session_status() !== PHP_SESSION_ACTIVE) {
session_start();
}
$admin_key = (string) ($config['admin_key'] ?? '');
$session_key = $_SESSION['gridtv_admin_unlocked'] ?? '';