Fixed typo in Mail.php getStructure $uid -> $_uid (in some cases i.e. if $_uid was an object no structure was returned)

This commit is contained in:
Alexandros Sigalas 2019-03-21 04:27:24 +02:00
parent 49336917d8
commit 43a87b8027

View File

@ -5646,8 +5646,13 @@ class Mail
$_folder = ($this->sessionData['mailbox']? $this->sessionData['mailbox'] : $this->icServer->getCurrentMailbox());
}
$uidsToFetch = new Horde_Imap_Client_Ids();
if (!(is_object($_uid) || is_array($_uid))) $uid = (array)$_uid;
$uidsToFetch->add($uid);
if (!(is_object($_uid) || is_array($_uid))){
$_uid = (array)$_uid;
}
$uidsToFetch->add($_uid);
try
{
$_fquery = new Horde_Imap_Client_Fetch_Query();