From 4e4a82f77416eb882b6e17407a813c395cb3cbaa Mon Sep 17 00:00:00 2001
From: Rodolphe Quiedeville <rodolphe@quiedeville.org>
Date: Mon, 2 Feb 2004 13:07:30 +0000
Subject: [PATCH] Syntax erreur sur define

---
 htdocs/contact.class.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/htdocs/contact.class.php b/htdocs/contact.class.php
index 06b1b132c37..155816187f7 100644
--- a/htdocs/contact.class.php
+++ b/htdocs/contact.class.php
@@ -94,7 +94,7 @@ class Contact
 	  print $this->db->error() . '<br>' . $sql;
 	}
 
-      if (define('MAIN_MODULE_LDAP')  && MAIN_MODULE_LDAP)
+      if (defined('MAIN_MODULE_LDAP')  && MAIN_MODULE_LDAP)
 	{
 	  $ds = dolibarr_ldap_connect();
 
@@ -265,7 +265,7 @@ class Contact
 	  print $this->db->error() . '<br>' . $sql;
 	}
 
-      if (define('MAIN_MODULE_LDAP')  && MAIN_MODULE_LDAP)
+      if (defined('MAIN_MODULE_LDAP')  && MAIN_MODULE_LDAP)
 	{
 	  $ds = dolibarr_ldap_connect();
       
-- 
GitLab