Bugfix: i broke the ImapClient Fetch callbacks

This commit is contained in:
djmaze 2022-01-07 14:22:30 +01:00
parent bb4822c9cf
commit a3312aed70

View file

@ -72,6 +72,7 @@ trait Messages
} else if (\is_array($mFetchKey) && 2 === \count($mFetchKey) } else if (\is_array($mFetchKey) && 2 === \count($mFetchKey)
&& \is_string($mFetchKey[0]) && \is_callable($mFetchKey[1])) && \is_string($mFetchKey[0]) && \is_callable($mFetchKey[1]))
{ {
$aFetchItems[] = $mFetchKey[0];
$this->aFetchCallbacks[$mFetchKey[0]] = $mFetchKey[1]; $this->aFetchCallbacks[$mFetchKey[0]] = $mFetchKey[1];
} }
break; break;