mirror of
https://github.com/e107inc/e107.git
synced 2025-08-02 20:57:26 +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(empty($msg)) return $this;
|
||||||
|
|
||||||
if(!$session)
|
if(!$session)
|
||||||
{
|
{var_dump($this->_unique, $this->_sysmsg[$type][$mstack]);
|
||||||
// unique messages only
|
// 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;
|
if($this->isType($type)) $this->_sysmsg[$type][$mstack][] = $msg;
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user