فهرست منبع

Fix Admin\Group page

Visman 5 سال پیش
والد
کامیت
a2fad121bd
1فایلهای تغییر یافته به همراه5 افزوده شده و 5 حذف شده
  1. 5 5
      app/Models/Pages/Admin/Groups.php

+ 5 - 5
app/Models/Pages/Admin/Groups.php

@@ -638,19 +638,19 @@ class Groups extends Admin
             return $this->c->Message->message('Bad request');
             return $this->c->Message->message('Bad request');
         }
         }
 
 
-        $count = $this->c->users->usersNumber($group);
+        $count  = $this->c->users->usersNumber($group);
+        $groups = [];
         if ($count) {
         if ($count) {
-            $move   = 'required|integer|in:';
-            $groups = [];
+            $move = 'required|integer|in:';
             foreach ($this->groupsList as $key => $cur) {
             foreach ($this->groupsList as $key => $cur) {
                 if ($key === $this->c->GROUP_GUEST || $key === $group->g_id) {
                 if ($key === $this->c->GROUP_GUEST || $key === $group->g_id) {
                     continue;
                     continue;
                 }
                 }
                 $groups[$key] = $cur[0];
                 $groups[$key] = $cur[0];
             }
             }
-            $move  .= \implode(',', \array_keys($groups));
+            $move .= \implode(',', \array_keys($groups));
         } else {
         } else {
-            $move   = 'absent';
+            $move = 'absent';
         }
         }
 
 
         if ('POST' === $method) {
         if ('POST' === $method) {