diff --git a/app/Http/Controllers/AnnounceController.php b/app/Http/Controllers/AnnounceController.php index 105527f77f..49e293ed80 100644 --- a/app/Http/Controllers/AnnounceController.php +++ b/app/Http/Controllers/AnnounceController.php @@ -86,7 +86,7 @@ public function announce(Request $request, $passkey) $ipv6 = $request->has('ipv6') ? bin2hex($request->get('ipv6')) : null; $no_peer_id = ($request->has('no_peer_id') && $request->get('no_peer_id') == 1) ? true : false; - // If User Client Is Sending Negitive Values Return Error to Client + // If User Client Is Sending Negative Values Return Error to Client if ($uploaded < 0 || $downloaded < 0 || $left < 0) { return response(Bencode::bencode(['failure reason' => 'Data from client is negative']), 200, ['Content-Type' => 'text/plain']); } diff --git a/app/Http/Controllers/BonusController.php b/app/Http/Controllers/BonusController.php index 1d8f4adffb..e8f95413ce 100755 --- a/app/Http/Controllers/BonusController.php +++ b/app/Http/Controllers/BonusController.php @@ -259,8 +259,8 @@ 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) { - return Redirect::route('torrent', ['slug' => $torrent->slug, 'id' => $torrent->id])->with(Toastr::error('You Cannot Tip A Negitive Amount!', 'Bro!', ['options'])); + 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; $uploader->save();