diff --git a/htdocs/contact.class.php b/htdocs/contact.class.php index 06b1b132c3715a728d08c186745e49b8e2cb9feb..155816187f798a92fff58342deff77774e07098b 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();