From 6153e205162478cda6687f2d326c1821ac3e6dd9 Mon Sep 17 00:00:00 2001
From: alecpl <alec@alec.pl>
Date: Thu, 08 May 2008 04:17:35 -0400
Subject: [PATCH] - Option 'use_SQL_address_book' replaced by 'address_book_type'

---
 program/steps/mail/addcontact.inc |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/program/steps/mail/addcontact.inc b/program/steps/mail/addcontact.inc
index 6f4187b..6568268 100644
--- a/program/steps/mail/addcontact.inc
+++ b/program/steps/mail/addcontact.inc
@@ -24,7 +24,7 @@
 if (!empty($_POST['_address']))
 {
   $CONTACTS = array();
-  if (!$CONFIG["use_SQL_address_book"]) {
+  if ($CONFIG['address_book_type'] == 'ldap') {
     // Use the first writable LDAP address book.
     foreach ($CONFIG["ldap_public"] as $id => $prop) {
       if ($prop["writable"]) {

--
Gitblit v1.9.1