mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-04-22 18:20:31 -05:00
Allow 0 value
Since the view (No = value 0) uses 0, this must be a valid option.
This commit is contained in:
@@ -96,7 +96,7 @@ class TorrentBuffController extends Controller
|
||||
$torrentFlAmount = $request->input('freeleech');
|
||||
|
||||
$v = validator($request->input(), [
|
||||
'freeleech' => 'numeric|not_in:0',
|
||||
'freeleech' => 'numeric|min:0|max:100',
|
||||
]);
|
||||
|
||||
if ($v->fails()) {
|
||||
|
||||
Reference in New Issue
Block a user