mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-04-23 19:50:40 -05:00
Fix typo
This commit is contained in:
@@ -86,7 +86,7 @@ class AnnounceController extends Controller
|
||||
$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']);
|
||||
}
|
||||
|
||||
@@ -260,7 +260,7 @@ class BonusController extends Controller
|
||||
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']));
|
||||
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();
|
||||
|
||||
Reference in New Issue
Block a user