Allow 0 value

Since the view (No = value 0) uses 0, this must be a valid option.
This commit is contained in:
Jay
2023-05-01 13:56:43 +02:00
committed by GitHub
parent 3f7fe9ab5f
commit 9f11d6eccb
@@ -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()) {