Update src/Content/Widget.php
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
This commit is contained in:
parent
44a9683008
commit
7b3caca276
1 changed files with 1 additions and 1 deletions
|
@ -365,7 +365,7 @@ class Widget
|
|||
return '';
|
||||
}
|
||||
|
||||
$visitorPCid = DI::userSession()->getLocalUserId() ? Contact::getPublicIdByUserId(DI::userSession()->getLocalUserId()) : DI::userSession()->getRemoteUserId();
|
||||
$visitorPCid = DI::userSession()->getPublicContactId() ?: DI::userSession()->getRemoteUserId();
|
||||
if (!$visitorPCid) {
|
||||
return '';
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue