summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2011-07-27 18:46:03 +0000
committeralecpl <alec@alec.pl>2011-07-27 18:46:03 +0000
commitf1574a5da234e9516514791f56ca2da9b2f28299 (patch)
tree2c525a5f79ca0339c59844f9b33cea303ce2b875 /program
parent733ed0a20a025c2534ab9cbfb5880ed44ec2472f (diff)
- Performance fix: don't create addressbook object to close() it if it wasn't created before, skipping unneeded LDAP connection
Diffstat (limited to 'program')
-rw-r--r--program/include/rcmail.php2
1 files changed, 0 insertions, 2 deletions
diff --git a/program/include/rcmail.php b/program/include/rcmail.php
index f37186c0e..396106e42 100644
--- a/program/include/rcmail.php
+++ b/program/include/rcmail.php
@@ -1160,8 +1160,6 @@ class rcmail
$this->smtp->disconnect();
foreach ($this->address_books as $book) {
- if (!is_object($book)) // maybe an address book instance wasn't fetched using get_address_book() yet
- $book = $this->get_address_book($book['id']);
if (is_a($book, 'rcube_addressbook'))
$book->close();
}