/**
  * Overriding Yii's implementation to make sure that session has been started before calling.
  *
  * @param bool $delete
  *
  * @return array|void
  */
 public function getFlashes($delete = true)
 {
     // Ensure session is open first.
     craft()->session->open();
     return parent::getFlashes($delete);
 }
 /**
  * {@inheritDoc}
  * @see CWebUser::getFlashes()
  */
 public function getFlashes($delete = true)
 {
     return parent::getFlashes($delete);
 }