Skip to content
This repository has been archived by the owner on Nov 20, 2022. It is now read-only.

Commit

Permalink
Removed hard-coded value
Browse files Browse the repository at this point in the history
  • Loading branch information
Prophet731 committed Jul 3, 2016
1 parent 8b7c66d commit 9f64a27
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/bfacp/Http/Controllers/Api/ReportsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 9f64a27

Please sign in to comment.