mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-09 01:17:04 +03:00
Bugfix: MailSo ResponseCollection undefined oLogger
Bugfix: MailSo cache driver file, no need for double mkdir()
This commit is contained in:
parent
e99a69a9aa
commit
aa3f71d299
3 changed files with 7 additions and 12 deletions
|
|
@ -76,15 +76,15 @@ class ResponseCollection extends \MailSo\Base\Collection
|
|||
return null;
|
||||
}
|
||||
|
||||
public function getFetchResult() : array
|
||||
public function getFetchResult($oLogger) : array
|
||||
{
|
||||
$aReturn = array();
|
||||
foreach ($this as $oResponse) {
|
||||
if (FetchResponse::IsValidFetchImapResponse($oResponse)) {
|
||||
if (FetchResponse::IsNotEmptyFetchImapResponse($oResponse)) {
|
||||
$aReturn[] = new FetchResponse($oResponse);
|
||||
} else if ($this->oLogger) {
|
||||
$this->oLogger->Write('Skipped Imap Response! ['.$oResponse->ToLine().']', \MailSo\Log\Enumerations\Type::NOTICE);
|
||||
} else if ($oLogger) {
|
||||
$oLogger->Write('Skipped Imap Response! ['.$oResponse->ToLine().']', \MailSo\Log\Enumerations\Type::NOTICE);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue