Fix misnamed variable in default home.ctp

PDO error message wouldn't appear when using PHP 5.4 or later.
This commit is contained in:
chinpei215 2016-06-16 12:12:37 +09:00
parent 9cc515bf9e
commit 0bf38c1ee4

View file

@ -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;