mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-30 17:17:22 +08:00
fix details user not exists
This commit is contained in:
+4
-1
@@ -38,7 +38,10 @@ if (!$row) {
|
|||||||
) {
|
) {
|
||||||
permissiondenied();
|
permissiondenied();
|
||||||
} else {
|
} 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();
|
$torrentRep = new \App\Repositories\TorrentRepository();
|
||||||
$torrentUpdate = [];
|
$torrentUpdate = [];
|
||||||
if (!empty($_GET["hit"])) {
|
if (!empty($_GET["hit"])) {
|
||||||
|
|||||||
Reference in New Issue
Block a user