mirror of
https://github.com/v2board/v2board.git
synced 2024-11-14 07:29:13 +08:00
Merge branch 'dev' of https://github.com/v2board/v2board into dev
This commit is contained in:
commit
234faeebba
@ -19,7 +19,7 @@ class PlanService
|
|||||||
{
|
{
|
||||||
if ($this->plan->capacity_limit === NULL) return true;
|
if ($this->plan->capacity_limit === NULL) return true;
|
||||||
$count = self::countActiveUsers();
|
$count = self::countActiveUsers();
|
||||||
$count = $count[$this->plan->id];
|
$count = $count[$this->plan->id]['count'] ?? 0;
|
||||||
return ($this->plan->capacity_limit - $count) > 0;
|
return ($this->plan->capacity_limit - $count) > 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user