From 6b603da6f16591b63f809ef967554d260bd0d891 Mon Sep 17 00:00:00 2001 From: thomascube <thomas@roundcube.net> Date: Wed, 15 Aug 2007 16:28:01 -0400 Subject: [PATCH] LDAP improvements --- program/include/main.inc | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/program/include/main.inc b/program/include/main.inc index f938174..bd4ebd0 100644 --- a/program/include/main.inc +++ b/program/include/main.inc @@ -299,7 +299,7 @@ */ function rcmail_shutdown() { - global $IMAP; + global $IMAP, $CONTACTS; if (is_object($IMAP)) { @@ -307,6 +307,9 @@ $IMAP->write_cache(); } + if (is_object($CONTACTS)) + $CONTACTS->close(); + // before closing the database connection, write session data session_write_close(); } -- Gitblit v1.9.1