diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-07-27 18:46:03 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-07-27 18:46:03 +0000 |
| commit | a1aeeaf4e3423c404b354953d08954b5cd9385cc (patch) | |
| tree | 482eba0bfbd9dfa9b02e6c154341e15f8c4852c5 /roundcubemail/program/include/rcmail.php | |
| parent | 35b84fb4812ab997945cf48ec9f3ed81db2c5ce8 (diff) | |
- Performance fix: don't create addressbook object to close() it if it wasn't created before, skipping unneeded LDAP connection
git-svn-id: https://svn.roundcube.net/trunk@4981 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/include/rcmail.php')
| -rw-r--r-- | roundcubemail/program/include/rcmail.php | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/roundcubemail/program/include/rcmail.php b/roundcubemail/program/include/rcmail.php index f37186c0e..396106e42 100644 --- a/roundcubemail/program/include/rcmail.php +++ b/roundcubemail/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(); } |
