#4738 ocify new improvments and bug

This commit is contained in:
Muammer Top 2021-10-21 12:52:38 +03:00
parent 1ab961c908
commit 61a93c94f5

View File

@ -9,9 +9,9 @@ class CacheController extends PublicController
public function getUserInfo()
{
$user = auth()->user();
$profile_img = $this->dispatch(
$profile_img = $user ? $this->dispatch(
new MakeImageInstance($user->file ?: 'theme::images/no_profile.svg', 'img')
)->url();
)->url() : $user;
$user = $user ? $user->first_name . ' ' . $user->last_name : $user;
$getAddBlockHtml = new addBlock('navigation/dropdown', []);