diff --git a/lib/Cake/Controller/Component/SessionComponent.php b/lib/Cake/Controller/Component/SessionComponent.php index f66f5be62..4057885ca 100644 --- a/lib/Cake/Controller/Component/SessionComponent.php +++ b/lib/Cake/Controller/Component/SessionComponent.php @@ -137,11 +137,11 @@ class SessionComponent extends Component { */ public function setFlash($message, $element = 'default', $params = array(), $key = 'flash') { $messages = (array)CakeSession::read('Message.' . $key); - $messages[] = [ + $messages[] = array( 'message' => $message, 'element' => $element, 'params' => $params, - ]; + ); CakeSession::write('Message.' . $key, $messages); }