From 9b2d0a08bcdac1160dd927504e78ce0cd513ca3e Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Tue, 16 Dec 2008 11:02:33 -0700 Subject: [PATCH] Sanity checking; clear eltdiff array. --- imp/lib/IMAP/Tree.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/imp/lib/IMAP/Tree.php b/imp/lib/IMAP/Tree.php index f4282663a..fd7e80363 100644 --- a/imp/lib/IMAP/Tree.php +++ b/imp/lib/IMAP/Tree.php @@ -1463,15 +1463,19 @@ class IMP_IMAP_Tree */ public function eltDiff() { - if (!$this->_changed) { + if (is_null($this->_eltdiff) || !$this->_changed) { return false; } - return array( + $ret = array( 'a' => array_keys($this->_eltdiff['a']), 'c' => array_keys($this->_eltdiff['c']), 'd' => array_keys($this->_eltdiff['d']) ); + + $this->_eltdiff = null; + + return $ret; } /** -- 2.11.0