diff options
author | alecpl <alec@alec.pl> | 2011-07-27 18:46:03 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2011-07-27 18:46:03 +0000 |
commit | f1574a5da234e9516514791f56ca2da9b2f28299 (patch) | |
tree | 2c525a5f79ca0339c59844f9b33cea303ce2b875 /program/include | |
parent | 733ed0a20a025c2534ab9cbfb5880ed44ec2472f (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/include')
-rw-r--r-- | program/include/rcmail.php | 2 |
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(); } |