From: Michael M Slusarz Date: Wed, 5 Aug 2009 17:57:54 +0000 (-0600) Subject: Clear alerts stack after calling alerts() X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=d3ef95a22849c1adbb5ad5b144a20b829d939b14;p=horde.git Clear alerts stack after calling alerts() --- diff --git a/framework/Imap_Client/lib/Horde/Imap/Client/Socket.php b/framework/Imap_Client/lib/Horde/Imap/Client/Socket.php index bea0dc5d8..f3fca4592 100644 --- a/framework/Imap_Client/lib/Horde/Imap/Client/Socket.php +++ b/framework/Imap_Client/lib/Horde/Imap/Client/Socket.php @@ -241,7 +241,11 @@ class Horde_Imap_Client_Socket extends Horde_Imap_Client_Base */ public function alerts() { - return empty($this->_temp['alerts']) ? array() : $this->_temp['alerts']; + $alerts = empty($this->_temp['alerts']) + ? array() + : $this->_temp['alerts']; + $this->_temp['alerts'] = array(); + return $alerts; } /**