1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-30 19:30:25 +02:00

Fix all PHP 8.0 test failures

This commit is contained in:
Nick Liu
2020-11-27 17:00:32 +01:00
parent 072c1b3a90
commit f256b924ce
21 changed files with 103 additions and 34 deletions

View File

@@ -104,7 +104,7 @@ if (isset($_POST['delp']))
$qs = explode(".", e_QUERY);
$self_page =($qs[0] == 'id' && intval($qs[1]) == USERID);
if (!defined("USER_WIDTH")){ define("USER_WIDTH","width:95%"); }
if(THEME_LEGACY === true) // v1.x BC Fix for loading old templates.
{
@@ -132,7 +132,6 @@ $user_shortcodes->wrapper('user/view');
$user_frm = new form;
require_once(HEADERF);
if (!defined("USER_WIDTH")){ define("USER_WIDTH","width:95%"); }
$full_perms = getperms("0") || check_class(varset($pref['memberlist_access'], 253)); // Controls display of info from other users
if (!$full_perms && !$self_page)