CRM_Core_Session - allow empty string in setStatus
authorColeman Watts <coleman@civicrm.org>
Sun, 29 Dec 2013 05:33:55 +0000 (21:33 -0800)
committerColeman Watts <coleman@civicrm.org>
Sun, 29 Dec 2013 05:33:55 +0000 (21:33 -0800)
CRM/Core/Session.php

index d667b837255c79ecd173a89864e1ebdd24a48b7c..7390bd19599e979cc134add6cf76176417837659 100644 (file)
@@ -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) {