diff --git a/lib/Cake/View/Helper/FlashHelper.php b/lib/Cake/View/Helper/FlashHelper.php index 798e1a5f3..6dae5f0ca 100644 --- a/lib/Cake/View/Helper/FlashHelper.php +++ b/lib/Cake/View/Helper/FlashHelper.php @@ -86,13 +86,13 @@ class FlashHelper extends AppHelper { CakeSession::delete("Message.$key"); // backwards compatibility with Session->setFlash - if($flash['element'] === 'default') { - $class = 'message'; - if (!empty($flash['params']['class'])) { - $class = $flash['params']['class']; - } - return '
' . $flash['message'] . '
'; - } + if($flash['element'] === 'default') { + $class = 'message'; + if (!empty($flash['params']['class'])) { + $class = $flash['params']['class']; + } + return '
' . $flash['message'] . '
'; + } return $this->_View->element($flash['element'], $flash); }