mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-07 00:17:03 +03:00
Resolve Issue #1
This commit is contained in:
parent
dd66824cd1
commit
a27c3befa8
1 changed files with 7 additions and 3 deletions
|
|
@ -104,11 +104,15 @@ class ResponseCollection extends \MailSo\Base\Collection
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
if (!\is_string($oResponse->ResponseList[4])) {
|
$sFullNameRaw = $oResponse->ResponseList[4];
|
||||||
\error_log('ResponseCollection::getFoldersResult: invalid string ' . \var_export($oResponse->ResponseList[4], true));
|
if (\is_array($sFullNameRaw)) {
|
||||||
|
$sFullNameRaw = "[{$sFullNameRaw[0]}]";
|
||||||
|
}
|
||||||
|
if (!\is_string($sFullNameRaw)) {
|
||||||
|
\error_log('ResponseCollection::getFoldersResult: invalid string ' . \var_export($sFullNameRaw, true));
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
$oFolder = new Folder($oResponse->ResponseList[4],
|
$oFolder = new Folder($sFullNameRaw,
|
||||||
$oResponse->ResponseList[3], $oResponse->ResponseList[2]);
|
$oResponse->ResponseList[3], $oResponse->ResponseList[2]);
|
||||||
|
|
||||||
if ($oFolder->IsInbox()) {
|
if ($oFolder->IsInbox()) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue