From a1aeeaf4e3423c404b354953d08954b5cd9385cc Mon Sep 17 00:00:00 2001 From: alec Date: Wed, 27 Jul 2011 18:46:03 +0000 Subject: - 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 --- roundcubemail/program/include/rcmail.php | 2 -- 1 file changed, 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(); } -- cgit v1.2.3