1
0
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:
Cameron 2022-01-13 11:31:20 -08:00
parent fd42d2325f
commit 56bb8200a1
3 changed files with 6 additions and 1 deletions

View File

@ -313,6 +313,10 @@ class e107
*/
public static function renderLayout($LAYOUT, $opts = array())
{
if(empty($LAYOUT))
{
$LAYOUT = '';
}
$tp = self::getParser();

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);

View File

@ -136,6 +136,7 @@
public function testHasMessage()
{
$this->mes->reset();
$this->mes->reset(false, 'default', true);
$result = $this->mes->hasMessage();
$this->assertFalse($result);