Skip to content

Commit

Permalink
Make sure the name variable exists
Browse files Browse the repository at this point in the history
  • Loading branch information
carakas committed Oct 15, 2019
1 parent 996352f commit 90b13fd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion spoon/exception/exception.php
Expand Up @@ -179,7 +179,10 @@ function exceptionHandler($exception)

function getOutput($exception)
{
// generate output
// specific name
$name = (method_exists($exception, 'getName')) ? $exception->getName() : get_class($exception);

// generate output
$output = '
<html>
<head>
Expand Down

0 comments on commit 90b13fd

Please sign in to comment.