Explorar el Código

Merge branch 'dev' of https://github.com/v2board/v2board into dev

tokumeikoi hace 2 años
padre
commit
234faeebba
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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'] ?? 0;
         return ($this->plan->capacity_limit - $count) > 0;
     }