summaryrefslogtreecommitdiff
path: root/roundcubemail
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-12-01 12:38:13 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-12-01 12:38:13 +0000
commit99736fa7c5a62df6696427db9cdf9d866bb3d3ca (patch)
tree3b4c10db4be77d91dd1023302c03a2cdd8c2e6c5 /roundcubemail
parentf985a63fb581c1e09a804bf04e303a96a014909e (diff)
- Fix so connection to LDAP will be properly closed
git-svn-id: https://svn.roundcube.net/trunk@5522 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail')
-rw-r--r--roundcubemail/program/include/rcmail.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/roundcubemail/program/include/rcmail.php b/roundcubemail/program/include/rcmail.php
index 6e07c9a4a..3808c600a 100644
--- a/roundcubemail/program/include/rcmail.php
+++ b/roundcubemail/program/include/rcmail.php
@@ -453,8 +453,7 @@ class rcmail
}
// 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 @@ class rcmail
$this->smtp->disconnect();
foreach ($this->address_books as $book) {
+console('---------------');
if (is_object($book) && is_a($book, 'rcube_addressbook'))
$book->close();
}