浏览代码

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

tokumeikoi 2 年之前
父节点
当前提交
234faeebba
共有 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'] ?? 0;
         return ($this->plan->capacity_limit - $count) > 0;
     }