Skip to content
Permalink
Browse files

Fix misnamed variable in default home.ctp

PDO error message wouldn't appear when using PHP 5.4 or later.
  • Loading branch information...
chinpei215 committed Jun 16, 2016
1 parent 9cc515b commit 0bf38c1ee476d1e20e81f13de364a9df9d943d50
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/View/Pages/home.ctp
@@ -94,7 +94,7 @@ if (isset($filePresent)):
$errorMsg = $connectionError->getMessage();
if (method_exists($connectionError, 'getAttributes')):
$attributes = $connectionError->getAttributes();
if (isset($errorMsg['message'])):
if (isset($attributes['message'])):
$errorMsg .= '<br />' . $attributes['message'];
endif;
endif;

0 comments on commit 0bf38c1

Please sign in to comment.
You can’t perform that action at this time.