|
@@ -48,14 +48,16 @@ class ChangeGroup extends Action
|
|
) {
|
|
) {
|
|
$moderators[$user->id] = $user;
|
|
$moderators[$user->id] = $user;
|
|
}
|
|
}
|
|
|
|
+
|
|
if ($user->isAdmin) {
|
|
if ($user->isAdmin) {
|
|
$adminPresent = true;
|
|
$adminPresent = true;
|
|
}
|
|
}
|
|
|
|
+
|
|
if ($user->isUnverified) {
|
|
if ($user->isUnverified) {
|
|
$unverPresent = true;
|
|
$unverPresent = true;
|
|
}
|
|
}
|
|
|
|
|
|
- $ids[] = $user->id;
|
|
|
|
|
|
+ $ids[] = $user->id;
|
|
$user->__group_id = $newGroupId;
|
|
$user->__group_id = $newGroupId;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -70,6 +72,10 @@ class ChangeGroup extends Action
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ if (\count($ids) > 1) {
|
|
|
|
+ \sort($ids, \SORT_NUMERIC);
|
|
|
|
+ }
|
|
|
|
+
|
|
$vars = [
|
|
$vars = [
|
|
':new' => $newGroupId,
|
|
':new' => $newGroupId,
|
|
':ids' => $ids,
|
|
':ids' => $ids,
|