From 159d2838edcb19c4c15c485ccdc02dfc81700a19 Mon Sep 17 00:00:00 2001 From: Bruno Vitorino Date: Thu, 17 Oct 2019 13:20:47 +0200 Subject: [PATCH] Define missing userAgent variable --- spoon/exception/exception.php | 1 + 1 file changed, 1 insertion(+) diff --git a/spoon/exception/exception.php b/spoon/exception/exception.php index 3642760..312d92d 100644 --- a/spoon/exception/exception.php +++ b/spoon/exception/exception.php @@ -181,6 +181,7 @@ function getOutput($exception) { // specific name $name = (method_exists($exception, 'getName')) ? $exception->getName() : get_class($exception); + $userAgent = isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : '(Unknown)'; // generate output $output = '