mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-04-22 18:20:31 -05:00
(Fix) tipUploader Must Be A Positive Amount
This commit is contained in:
@@ -254,7 +254,7 @@ class BonusController extends Controller
|
||||
if ($user->id == $torrent->user_id) {
|
||||
return redirect()->route('torrent', ['slug' => $torrent->slug, 'id' => $torrent->id])->with(Toastr::error('You Cannot Tip Yourself!', 'Whoops!', ['options']));
|
||||
}
|
||||
if ($tip_amount < 0) {
|
||||
if ($tip_amount <= 0) {
|
||||
return redirect()->route('torrent', ['slug' => $torrent->slug, 'id' => $torrent->id])->with(Toastr::error('You Cannot Tip A Negative Amount!', 'Whoops!', ['options']));
|
||||
}
|
||||
$uploader->seedbonus += $tip_amount;
|
||||
|
||||
Reference in New Issue
Block a user