From: Michael M Slusarz Date: Tue, 30 Jun 2009 00:36:34 +0000 (-0600) Subject: Need to clone Horde_Mime_Part so later changes aren't saved in cache X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=02d96ac50797b5748cd8ac5176474bd7ab82c3f9;p=horde.git Need to clone Horde_Mime_Part so later changes aren't saved in cache --- diff --git a/framework/Imap_Client/lib/Horde/Imap/Client/Base.php b/framework/Imap_Client/lib/Horde/Imap/Client/Base.php index 4a14500ed..f4adfd0a6 100644 --- a/framework/Imap_Client/lib/Horde/Imap/Client/Base.php +++ b/framework/Imap_Client/lib/Horde/Imap/Client/Base.php @@ -2574,7 +2574,11 @@ abstract class Horde_Imap_Client_Base switch ($label) { case 'structure': if (isset($cf[Horde_Imap_Client::FETCH_STRUCTURE])) { - $tmp[is_array($val) ? 'HICstructa' : 'HICstructm'] = $val; + if (is_array($val)) { + $tmp['HICstructa'] = $val; + } else { + $tmp['HICstructm'] = clone $val; + } } break;