aboutsummaryrefslogtreecommitdiffhomepage
path: root/app/Exceptions
diff options
context:
space:
mode:
authorMarvin Borner2018-07-09 20:25:31 +0200
committerMarvin Borner2018-07-09 20:25:31 +0200
commit7f64834519dd1cde7455df55744e49c4be9b90f5 (patch)
tree94931d3ee8186347e277851dbeef5b772d1ee365 /app/Exceptions
parentb9ce852cd3d5531053c0e22d9ff1c6b31d7d791e (diff)
Fixed 'undefined variable' error
Diffstat (limited to 'app/Exceptions')
-rw-r--r--app/Exceptions/Handler.php2
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', [