diff options
author | Marvin Borner | 2018-07-09 20:25:31 +0200 |
---|---|---|
committer | Marvin Borner | 2018-07-09 20:25:31 +0200 |
commit | 7f64834519dd1cde7455df55744e49c4be9b90f5 (patch) | |
tree | 94931d3ee8186347e277851dbeef5b772d1ee365 /app/Exceptions | |
parent | b9ce852cd3d5531053c0e22d9ff1c6b31d7d791e (diff) |
Fixed 'undefined variable' error
Diffstat (limited to 'app/Exceptions')
-rw-r--r-- | app/Exceptions/Handler.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Exceptions/Handler.php b/app/Exceptions/Handler.php index 987fc82..f1078a9 100644 --- a/app/Exceptions/Handler.php +++ b/app/Exceptions/Handler.php @@ -54,7 +54,7 @@ class Handler extends ExceptionHandler case '404': $codeMessage = 'Page could not be found.'; } - $errorMessage = $exception->getMessage() == '' ? ($codeMessage ? $codeMessage : 'An unknown error occurred.') : $exception->getMessage(); + $errorMessage = $exception->getMessage() == '' ? (isset($codeMessage) ? $codeMessage : 'An unknown error occurred.') : $exception->getMessage(); return response(View::make('errors.http', [ |