From dbfb0b6cff106fc31b009361bee2f9f2bce2a3dc Mon Sep 17 00:00:00 2001 From: Michael Date: Tue, 19 Mar 2019 06:57:37 +0000 Subject: [PATCH] Added app class variable --- src/Model/Profile.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Model/Profile.php b/src/Model/Profile.php index b856407994..79971cd999 100644 --- a/src/Model/Profile.php +++ b/src/Model/Profile.php @@ -1090,6 +1090,8 @@ class Profile */ public static function addVisitorCookieForHandle($handle) { + $a = \get_app(); + // Try to find the public contact entry of the visitor. $cid = Contact::getIdForURL($handle); if (!$cid) { -- 2.39.5