mirror of
https://github.com/e107inc/e107.git
synced 2025-07-30 19:30:25 +02:00
PHP8 fixes and shortcode tests for forum, gallery, hero and login_menu. admin-shortcode time fix.
This commit is contained in:
@@ -143,9 +143,15 @@
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
if ($parms[1] == 'value')
|
||||
if ($parms[1] === 'value')
|
||||
{
|
||||
$uVal = isset($parms[0]) && isset($udata['user_'.$parms[0]]) ? str_replace(chr(1), '', $udata['user_'.$parms[0]]) : '';
|
||||
|
||||
if(!isset($parms[0]) || !isset($ueStruct["user_".$parms[0]]) || !isset($ueStruct["user_".$parms[0]]['user_extended_struct_type']))
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
switch ($ueStruct["user_".$parms[0]]['user_extended_struct_type'])
|
||||
{
|
||||
|
||||
|
Reference in New Issue
Block a user