mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-18 18:46:17 +00:00
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:
parent
9cc515bf9e
commit
0bf38c1ee4
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue