Quellcode durchsuchen

update: have capacity

tokumeikoi vor 2 Jahren
Ursprung
Commit
a456ecaa81
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  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;
     }