From 69d48aaaf7d9e7034d36c2f7d8309f33f276e34d Mon Sep 17 00:00:00 2001 From: SecretR Date: Tue, 7 May 2013 16:25:47 +0300 Subject: [PATCH] Fixed #154: PHP warning on message_handler --- e107_handlers/message_handler.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/e107_handlers/message_handler.php b/e107_handlers/message_handler.php index c276eca10..29e1a6671 100644 --- a/e107_handlers/message_handler.php +++ b/e107_handlers/message_handler.php @@ -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; }