mirror of
https://github.com/openclassify/openclassify.git
synced 2026-04-14 19:22:10 -05:00
#4760 Subscriptions Sentry Error -Trying to get property 'name' of non-object
This commit is contained in:
parent
5fe010e83f
commit
179a3cceba
@ -12,7 +12,7 @@ class CacheController extends PublicController
|
||||
$profile_img = $user ? $this->dispatch(
|
||||
new MakeImageInstance($user->file ?: 'theme::images/no_profile.svg', 'img')
|
||||
)->url() : $user;
|
||||
$user = $user ? $user->first_name . ' ' . $user->last_name : $user;
|
||||
$user = $user ? $user->name() : $user;
|
||||
|
||||
$getAddBlockHtml = new addBlock('navigation/dropdown', []);
|
||||
$addBlockHtml = $getAddBlockHtml->handle();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user