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; }