Skip to content

Commit

Permalink
Merge pull request #73 from ohvitorino/defined-user-agent-variable
Browse files Browse the repository at this point in the history
Define missing userAgent variable
  • Loading branch information
carakas committed Oct 17, 2019
2 parents 90b13fd + 159d283 commit f0098ab
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 f0098ab

Please sign in to comment.