Skip to content

Commit

Permalink
Define missing userAgent variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Bruno Vitorino committed Oct 17, 2019
1 parent 90b13fd commit 159d283
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions spoon/exception/exception.php
Expand Up @@ -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'] : '<i>(Unknown)</i>';

// generate output
$output = '
Expand Down

0 comments on commit 159d283

Please sign in to comment.