From 0bf38c1ee476d1e20e81f13de364a9df9d943d50 Mon Sep 17 00:00:00 2001 From: chinpei215 Date: Thu, 16 Jun 2016 12:12:37 +0900 Subject: [PATCH] Fix misnamed variable in default home.ctp PDO error message wouldn't appear when using PHP 5.4 or later. --- app/View/Pages/home.ctp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/View/Pages/home.ctp b/app/View/Pages/home.ctp index f305fb3d4..687401792 100644 --- a/app/View/Pages/home.ctp +++ b/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 .= '
' . $attributes['message']; endif; endif;