From 025697d37cb3eaf8a2235326ca9f5372bded7aa1 Mon Sep 17 00:00:00 2001 From: Aldarien Date: Thu, 1 Dec 2022 14:22:13 -0300 Subject: [PATCH] FIX: Check for _REQUEST --- ui/public/index.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ui/public/index.php b/ui/public/index.php index 71055da..7ef5588 100644 --- a/ui/public/index.php +++ b/ui/public/index.php @@ -8,7 +8,9 @@ Monolog\ErrorHandler::register($app->getContainer()->get(Psr\Log\LoggerInterface try { $app->run(); } catch (Error | Exception $e) { - $app->getContainer()->get(Psr\Log\LoggerInterface::class)->debug(json_encode(compact('_REQUEST'))); + if (isset($_REQUEST)) { + $app->getContainer()->get(Psr\Log\LoggerInterface::class)->debug(json_encode(compact('_REQUEST'))); + } $app->getContainer()->get(Psr\Log\LoggerInterface::class)->error($e); throw $e; }