alecpl
2011-07-27 f1574a5da234e9516514791f56ca2da9b2f28299
- Performance fix: don't create addressbook object to close() it if it wasn't created before, skipping unneeded LDAP connection


1 files modified
2 ■■■■■ changed files
program/include/rcmail.php 2 ●●●●● patch | view | raw | blame | history
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();
    }