From: Hypolite Petovan Date: Sun, 30 Jun 2019 16:16:18 +0000 (-0400) Subject: Fix missing App object in Worker\OnePoll X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=7abc42700ccd31d1f911ed7526f7e191609d500b;p=friendica.git Fix missing App object in Worker\OnePoll --- 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;