Fix missing App object in Worker\OnePoll

2022.09-rc
Hypolite Petovan 2019-06-30 12:16:18 -04:00
rodzic 4bb7a8c342
commit 7abc42700c
1 zmienionych plików z 1 dodań i 3 usunięć

Wyświetl plik

@ -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;