1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-16 20:28:28 +01:00

Various PHP8 Fixes

This commit is contained in:
Cameron 2021-01-22 06:32:59 -08:00
parent 4a9cf379a6
commit 4b0edad459
4 changed files with 4 additions and 4 deletions

View File

@ -368,7 +368,7 @@ class e_plugin
e107::getDebug()->log("\$this->_plugdir is empty ".__FILE__." ". __CLASS__ ."::".__METHOD__);
}
return $this->_data[$this->_plugdir]['legacy'];
return varset($this->_data[$this->_plugdir]['legacy']);
}

View File

@ -1429,7 +1429,7 @@ i.e-cat_users-32{ background-position: -555px 0; width: 32px; height: 32px; }
}
$replace['LINK_TEXT'] = str_replace(" ", " ", $e107_vars[$act]['text']);
$replace['LINK_TEXT'] = str_replace(" ", " ", varset($e107_vars[$act]['text']));
// valid URLs
$replace['LINK_URL'] = str_replace(array('&', '&'), array('&', '&'), vartrue($e107_vars[$act]['link'], "#{$act}"));

View File

@ -26,7 +26,7 @@ $cached = e107::getCache()->retrieve($cString);
if(false === $cached)
{
$sql = e107::getDb();
require_once(e_PLUGIN."blogcalendar_menu/calendar.php");
require_once(e_PLUGIN."blogcalendar_menu/functions.php");

View File

@ -851,7 +851,7 @@ class e107Test extends \Codeception\Test\Unit
// $this->assertFalse(defined('BANNERLAN_19'), 'BANNERLAN_19 is already defined!');
// $this->assertFalse(defined('LAN_FORUM_0002'), 'LAN_FORUM_0002 is already defined!');
$this->assertFalse(defined('LAN_GALLERY_ADMIN_01'), 'LAN_GALLERY_ADMIN_01 is already defined!');
$this->assertFalse(defined('CM_L1'), 'Comment Menu English file already defined');
// $this->assertFalse(defined('CM_L1'), 'Comment Menu English file already defined');
$this->assertFalse(defined('LAN_FORUM_MENU_001'), 'LAN_FORUM_MENU_001 is already defined!');
$this->assertFalse(defined('BNRLAN_11'), 'BNRLAN_11 is already defined!');
$this->assertFalse(defined('CHATBOX_L1'), 'CHATBOX_L1 is already defined!');