diff options
author | Claire <claire.github-309c@sitedethib.com> | 2022-01-16 20:57:37 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-16 20:57:37 +0100 |
commit | 081e4426f8b4f5377afdd6e68e135a3aded93df1 (patch) | |
tree | e4513061a41cad78d737aa03777bd5b602a11ee2 /app/helpers/admin | |
parent | 462bc65112276f4cbfbeb1efd8cd452fda7d0f23 (diff) |
Fix admin interface crash when displaying deleted user (#17301)
Diffstat (limited to 'app/helpers/admin')
-rw-r--r-- | app/helpers/admin/dashboard_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/admin/dashboard_helper.rb b/app/helpers/admin/dashboard_helper.rb index d4a30b97e..c21d41341 100644 --- a/app/helpers/admin/dashboard_helper.rb +++ b/app/helpers/admin/dashboard_helper.rb @@ -2,7 +2,7 @@ module Admin::DashboardHelper def relevant_account_ip(account, ip_query) - ips = account.user.ips.to_a + ips = account.user.present? ? account.user.ips.to_a : [] matched_ip = begin ip_query_addr = IPAddr.new(ip_query) |