From 14b342b03aaedadb67244149e7dea3210c6ac0ed Mon Sep 17 00:00:00 2001
From: alecpl <alec@alec.pl>
Date: Thu, 01 Dec 2011 07:38:13 -0500
Subject: [PATCH] - Fix so connection to LDAP will be properly closed
---
program/include/rcmail.php | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/program/include/rcmail.php b/program/include/rcmail.php
index 6e07c9a..3808c60 100644
--- a/program/include/rcmail.php
+++ b/program/include/rcmail.php
@@ -453,8 +453,7 @@
}
// add to the 'books' array for shutdown function
- if (!isset($this->address_books[$id]))
- $this->address_books[$id] = $contacts;
+ $this->address_books[$id] = $contacts;
return $contacts;
}
@@ -1214,6 +1213,7 @@
$this->smtp->disconnect();
foreach ($this->address_books as $book) {
+console('---------------');
if (is_object($book) && is_a($book, 'rcube_addressbook'))
$book->close();
}
--
Gitblit v1.9.1