mirror of
https://github.com/e107inc/e107.git
synced 2025-04-15 10:02:02 +02:00
Corrected PHP 8.1 warnings.
This commit is contained in:
parent
fd42d2325f
commit
56bb8200a1
@ -313,6 +313,10 @@ class e107
|
||||
*/
|
||||
public static function renderLayout($LAYOUT, $opts = array())
|
||||
{
|
||||
if(empty($LAYOUT))
|
||||
{
|
||||
$LAYOUT = '';
|
||||
}
|
||||
|
||||
$tp = self::getParser();
|
||||
|
||||
|
@ -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);
|
||||
|
@ -136,6 +136,7 @@
|
||||
public function testHasMessage()
|
||||
{
|
||||
$this->mes->reset();
|
||||
$this->mes->reset(false, 'default', true);
|
||||
|
||||
$result = $this->mes->hasMessage();
|
||||
$this->assertFalse($result);
|
||||
|
Loading…
x
Reference in New Issue
Block a user