1
0
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:
SecretR
2013-05-07 16:25:47 +03:00
parent ebcf1e0169
commit 69d48aaaf7

View File

@@ -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;
}