mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 11:50:30 +02:00
Fixed #154: PHP warning on message_handler
This commit is contained in:
@@ -186,9 +186,9 @@ class eMessage
|
||||
if(empty($msg)) return $this;
|
||||
|
||||
if(!$session)
|
||||
{
|
||||
{var_dump($this->_unique, $this->_sysmsg[$type][$mstack]);
|
||||
// unique messages only
|
||||
if(in_array($mstack, $this->_unique) && in_array($msg, $this->_sysmsg[$type][$mstack])) return $this;
|
||||
if(in_array($mstack, $this->_unique) && isset($this->_sysmsg[$type][$mstack]) && in_array($msg, $this->_sysmsg[$type][$mstack])) return $this;
|
||||
if($this->isType($type)) $this->_sysmsg[$type][$mstack][] = $msg;
|
||||
return $this;
|
||||
}
|
||||
|
Reference in New Issue
Block a user