Skip to content

Commit

Permalink
Fix message for tip amount
Browse files Browse the repository at this point in the history
  • Loading branch information
Hyleus authored and Hyleus committed Jan 4, 2018
1 parent 97fb9c4 commit 492c0ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Controllers/BonusController.php
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ public function tipUploader($slug, $id)
if ($user->id == $torrent->user_id) {
return Redirect::route('torrent', ['slug' => $torrent->slug, 'id' => $torrent->id])->with(Toastr::error('You Cannot Tip Yourself!', 'Bro!', ['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!', 'Bro!', ['options']));
}
$uploader->seedbonus += $tip_amount;
Expand Down

0 comments on commit 492c0ec

Please sign in to comment.