From 91149eeffcf1e5c10a2c66ea6aa85c54e52bf5ca Mon Sep 17 00:00:00 2001 From: Khalid Baheyeldin <29777018+kbahey@users.noreply.github.com> Date: Thu, 6 Oct 2022 12:58:06 -0400 Subject: [PATCH] Suppress error: "Undefined index q" when fast_404 enabled Fix for #214 Error "Undefined Index" when fast_404() is enabled in settings.php --- includes/miscellaneous.inc | 1 + 1 file changed, 1 insertion(+) diff --git a/includes/miscellaneous.inc b/includes/miscellaneous.inc index 9df563a6..037fb775 100644 --- a/includes/miscellaneous.inc +++ b/includes/miscellaneous.inc @@ -19,6 +19,7 @@ function bee_initialize_server() { $_SERVER['SCRIPT_NAME'] = '/index.php'; $_SERVER['PHP_SELF'] = '/index.php'; $_SERVER['HTTP_USER_AGENT'] = 'Bee'; + $_GET['q'] = 'node'; } /**