Update src/Content/Widget.php
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
This commit is contained in:
@@ -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 '';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user