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

User class list now rendered as expected

This commit is contained in:
SecretR
2016-01-04 02:30:59 +02:00
parent 23cd564cd6
commit 24ed9ac3f8

View File

@@ -487,12 +487,9 @@ class user_class
if ($optlist)
{
$opt_arr = explode(',',$optlist);
}
foreach ($opt_arr as &$v)
{
$v = trim($v);
$opt_arr = array_map('trim', explode(',',$optlist));
}
$opt_arr = array_flip($opt_arr); // This also eliminates duplicates which could arise from applying the other options, although shouldn't matter
if (isset($opt_arr['no-excludes'])) unset($opt_arr['no-excludes']);
@@ -551,8 +548,9 @@ class user_class
if (!array_key_exists($uc_id,$this->fixed_classes)
&& ( getperms('0')
|| (
(!isset($optlist['matchclass']) || check_class($uc_id))
&& (!isset($optlist['filter']) || check_class($row['userclass_visibility']))
(!isset($opt_arr['matchclass']) || check_class($uc_id))
&&
(!isset($opt_arr['filter']) || check_class($row['userclass_visibility']))
)
)
)