From 9f64a272240a7817113ad51def96f5004c53bad7 Mon Sep 17 00:00:00 2001 From: Prophet731 Date: Sun, 3 Jul 2016 05:24:28 -0700 Subject: [PATCH] Removed hard-coded value --- app/bfacp/Http/Controllers/Api/ReportsController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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);