mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-05-03 08:50:22 -05:00
Fix search for uploaded returns 404 error
This commit is contained in:
@@ -411,7 +411,10 @@ class TorrentController extends Controller
|
||||
}
|
||||
|
||||
if ($request->has('uploader') && $request->input('uploader') != null) {
|
||||
$match = User::where('username', 'like', $uploader)->firstOrFail();
|
||||
$match = User::where('username', 'like', $uploader)->first();
|
||||
if(null === $match){
|
||||
return ['result'=>[],'count'=>0];
|
||||
}
|
||||
$torrent->where('user_id', $match->id)->where('anon', 0);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user