diff --git a/app/Services/PronounService.php b/app/Services/PronounService.php index f8185b97b..dce1d591a 100644 --- a/app/Services/PronounService.php +++ b/app/Services/PronounService.php @@ -15,7 +15,7 @@ class PronounService { return Cache::remember($key, $ttl, function() use($id) { $res = UserPronoun::whereProfileId($id)->first(); - return $res ? json_decode($res->pronouns, true) : []; + return $res && $res->pronouns ? json_decode($res->pronouns, true) : []; }); }