diff --git a/app/bfacp/Http/Controllers/Api/ReportsController.php b/app/bfacp/Http/Controllers/Api/ReportsController.php index bc5ceaa5e..b0bad7463 100644 --- a/app/bfacp/Http/Controllers/Api/ReportsController.php +++ b/app/bfacp/Http/Controllers/Api/ReportsController.php @@ -71,7 +71,8 @@ public function putIndex() if (Input::get('action') == 7) { $maxDuration = Setting::where('setting_name', - 'Maximum Temp-Ban Duration Minutes')->where('server_id', 1)->pluck('setting_value'); + 'Maximum Temp-Ban Duration Minutes')->where('server_id', + $newRecord->server_id)->pluck('setting_value'); $duration = Input::get('extras.tban.duration', $maxDuration);