1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-10 16:46:50 +02:00

Corrected PHP 8.1 warnings.

This commit is contained in:
Cameron
2022-01-13 11:31:20 -08:00
parent fd42d2325f
commit 56bb8200a1
3 changed files with 6 additions and 1 deletions

View File

@@ -334,7 +334,7 @@ class eMessage
if($this->isType($type))
{
// unique messages only
if(in_array($mstack, $this->_unique) && in_array($message, $SESSION[$type][$mstack])) return $this;
if(in_array($mstack, $this->_unique) && isset($SESSION[$type][$mstack]) && in_array($message, $SESSION[$type][$mstack])) return $this;
$SESSION[$type][$mstack][] = $message;
$this->getSessionHandler()->set($this->_session_id, $SESSION);