#2622 ad list filter by user error

This commit is contained in:
Diatrex 2020-11-14 10:15:07 +03:00
parent 4a25e7834a
commit 4cb3254dc6

View File

@ -436,10 +436,11 @@ class AdvsController extends PublicController
$user = null; $user = null;
if (\request()->user) { if (\request()->user) {
$user = $this->userRepository->find(\request()->user); if ($user = $this->userRepository->find(\request()->user)) {
$showTitle = false; $showTitle = false;
$metaTitle = $user->name() . ' ' . trans('visiosoft.module.advs::field.ads'); $metaTitle = $user->name() . ' ' . trans('visiosoft.module.advs::field.ads');
} }
}
$this->template->set('showTitle', $showTitle); $this->template->set('showTitle', $showTitle);
$this->template->set('meta_title', $metaTitle); $this->template->set('meta_title', $metaTitle);