X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FCore%2FSession.php;h=20ba2ebf098c2895c3fcfca1a67982276a65ba8a;hb=900eb33a20f6f8ed03c1a8da6259a61679935ac8;hp=7eb7b716298f0225ea29d2c1ecd848f678c0c927;hpb=c52dca187fea48b67e5479f23e17bfd8206c42df;p=civicrm-core.git diff --git a/CRM/Core/Session.php b/CRM/Core/Session.php index 7eb7b71629..20ba2ebf09 100644 --- a/CRM/Core/Session.php +++ b/CRM/Core/Session.php @@ -179,7 +179,7 @@ class CRM_Core_Session { return; } - if (!CRM_Utils_Array::value($prefix, $this->_session[$this->_key])) { + if (empty($this->_session[$this->_key][$prefix])) { $this->_session[$this->_key][$prefix] = array(); } } @@ -496,7 +496,7 @@ class CRM_Core_Session { if (!isset(self::$_singleton->_session[self::$_singleton->_key]['status'])) { self::$_singleton->_session[self::$_singleton->_key]['status'] = array(); } - if ($text) { + if ($text || $title) { if ($options['unique']) { foreach (self::$_singleton->_session[self::$_singleton->_key]['status'] as $msg) { if ($msg['text'] == $text && $msg['title'] == $title) {