From 7abc42700ccd31d1f911ed7526f7e191609d500b Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Sun, 30 Jun 2019 12:16:18 -0400 Subject: [PATCH] Fix missing App object in Worker\OnePoll --- src/Worker/OnePoll.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Worker/OnePoll.php b/src/Worker/OnePoll.php index 3c14100ab2..33a9a51a18 100644 --- a/src/Worker/OnePoll.php +++ b/src/Worker/OnePoll.php @@ -26,8 +26,6 @@ class OnePoll { public static function execute($contact_id = 0, $command = '') { - $a = BaseObject::getApp(); - Logger::log('Start for contact ' . $contact_id); $force = false; @@ -612,7 +610,7 @@ class OnePoll } } - $fromarr = imap_rfc822_parse_adrlist($fromdecoded, $a->getHostName()); + $fromarr = imap_rfc822_parse_adrlist($fromdecoded, BaseObject::getApp()->getHostName()); $frommail = $fromarr[0]->mailbox."@".$fromarr[0]->host; -- 2.39.5