mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-04-23 11:39:19 -05:00
Apply fixes from StyleCI
This commit is contained in:
@@ -2045,11 +2045,11 @@ class UserController extends Controller
|
||||
// Return with Error if no Peer exists
|
||||
if ($peers->isEmpty()) {
|
||||
return \redirect()->back()->withErrors('No Peers found! Please wait at least 70 Minutes after the last announce from the client!');
|
||||
} else {
|
||||
$new_value = $request->user()->own_flushes - 1;
|
||||
User::where('username', '=', $username)->update(['own_flushes' => $new_value]);
|
||||
}
|
||||
|
||||
$new_value = $request->user()->own_flushes - 1;
|
||||
User::where('username', '=', $username)->update(['own_flushes' => $new_value]);
|
||||
|
||||
// Iterate over Peers
|
||||
foreach ($peers as $peer) {
|
||||
$history = History::where('info_hash', '=', $peer->info_hash)->where('user_id', '=', $peer->user_id)->first();
|
||||
|
||||
Reference in New Issue
Block a user