From 7f64834519dd1cde7455df55744e49c4be9b90f5 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Mon, 9 Jul 2018 20:25:31 +0200 Subject: Fixed 'undefined variable' error --- app/Exceptions/Handler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/Exceptions') 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', [ -- cgit v1.2.3