From 7b3caca27663a37b06bc9ada6ed5a3e813a11e64 Mon Sep 17 00:00:00 2001 From: Philipp Date: Fri, 21 Oct 2022 19:34:02 +0200 Subject: [PATCH] Update src/Content/Widget.php Co-authored-by: Hypolite Petovan --- src/Content/Widget.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Content/Widget.php b/src/Content/Widget.php index 400ed2dab7..6d00c61320 100644 --- a/src/Content/Widget.php +++ b/src/Content/Widget.php @@ -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 ''; }