tokumeikoi преди 2 години
родител
ревизия
a456ecaa81
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      app/Services/PlanService.php

+ 1 - 1
app/Services/PlanService.php

@@ -19,7 +19,7 @@ class PlanService
     {
         if ($this->plan->capacity_limit === NULL) return true;
         $count = self::countActiveUsers();
-        $count = $count[$this->plan->id];
+        $count = $count[$this->plan->id]['count'];
         return ($this->plan->capacity_limit - $count) > 0;
     }