mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 12:30:49 +08:00
fix details user not exists
This commit is contained in:
@@ -38,7 +38,10 @@ if (!$row) {
|
||||
) {
|
||||
permissiondenied();
|
||||
} else {
|
||||
$owner = \App\Models\User::query()->with(['valid_medals'])->findOrFail($row['owner']);
|
||||
$owner = \App\Models\User::query()->with(['valid_medals'])->find($row['owner']);
|
||||
if (!$owner) {
|
||||
$owner = \App\Models\User::defaultUser();
|
||||
}
|
||||
$torrentRep = new \App\Repositories\TorrentRepository();
|
||||
$torrentUpdate = [];
|
||||
if (!empty($_GET["hit"])) {
|
||||
|
||||
Reference in New Issue
Block a user