Merge pull request #7332 from MrPetovan/bug/fatal-errors
Fix missing App object in Worker\OnePoll
This commit is contained in:
commit
8af45c1dd8
1 changed files with 1 additions and 3 deletions
|
@ -26,8 +26,6 @@ class OnePoll
|
||||||
{
|
{
|
||||||
public static function execute($contact_id = 0, $command = '')
|
public static function execute($contact_id = 0, $command = '')
|
||||||
{
|
{
|
||||||
$a = BaseObject::getApp();
|
|
||||||
|
|
||||||
Logger::log('Start for contact ' . $contact_id);
|
Logger::log('Start for contact ' . $contact_id);
|
||||||
|
|
||||||
$force = false;
|
$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;
|
$frommail = $fromarr[0]->mailbox."@".$fromarr[0]->host;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue