From f1574a5da234e9516514791f56ca2da9b2f28299 Mon Sep 17 00:00:00 2001 From: alecpl <alec@alec.pl> Date: Wed, 27 Jul 2011 14:46:03 -0400 Subject: [PATCH] - Performance fix: don't create addressbook object to close() it if it wasn't created before, skipping unneeded LDAP connection --- 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 f37186c..396106e 100644 --- a/program/include/rcmail.php +++ b/program/include/rcmail.php @@ -1160,8 +1160,6 @@ $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(); } -- Gitblit v1.9.1