mirror of
https://github.com/e107inc/e107.git
synced 2025-08-01 20:30:39 +02:00
Corrected PHP 8.1 warnings.
This commit is contained in:
@@ -313,6 +313,10 @@ class e107
|
|||||||
*/
|
*/
|
||||||
public static function renderLayout($LAYOUT, $opts = array())
|
public static function renderLayout($LAYOUT, $opts = array())
|
||||||
{
|
{
|
||||||
|
if(empty($LAYOUT))
|
||||||
|
{
|
||||||
|
$LAYOUT = '';
|
||||||
|
}
|
||||||
|
|
||||||
$tp = self::getParser();
|
$tp = self::getParser();
|
||||||
|
|
||||||
|
@@ -334,7 +334,7 @@ class eMessage
|
|||||||
if($this->isType($type))
|
if($this->isType($type))
|
||||||
{
|
{
|
||||||
// unique messages only
|
// 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;
|
$SESSION[$type][$mstack][] = $message;
|
||||||
$this->getSessionHandler()->set($this->_session_id, $SESSION);
|
$this->getSessionHandler()->set($this->_session_id, $SESSION);
|
||||||
|
@@ -136,6 +136,7 @@
|
|||||||
public function testHasMessage()
|
public function testHasMessage()
|
||||||
{
|
{
|
||||||
$this->mes->reset();
|
$this->mes->reset();
|
||||||
|
$this->mes->reset(false, 'default', true);
|
||||||
|
|
||||||
$result = $this->mes->hasMessage();
|
$result = $this->mes->hasMessage();
|
||||||
$this->assertFalse($result);
|
$this->assertFalse($result);
|
||||||
|
Reference in New Issue
Block a user