diff --git a/app/Http/Controllers/Admin/AdminReportController.php b/app/Http/Controllers/Admin/AdminReportController.php index 8b4c9d0d7..6732de4e2 100644 --- a/app/Http/Controllers/Admin/AdminReportController.php +++ b/app/Http/Controllers/Admin/AdminReportController.php @@ -528,11 +528,14 @@ trait AdminReportController return !in_array($id, $ignored); }) ->map(function($id) { - $account = AccountService::get($id); $user = User::whereProfileId($id)->first(); if(!$user) { return []; } + $account = AccountService::get($id); + if(!$account) { + return []; + } $account['email'] = $user->email; return $account; })