From e8d90a014587585872170d3ecba17d06bff8a5bd Mon Sep 17 00:00:00 2001
From: Rodolphe Quiedeville <rodolphe@quiedeville.org>
Date: Mon, 2 Feb 2004 13:09:48 +0000
Subject: [PATCH] Des erreurs encore des erreurs ....

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

diff --git a/htdocs/contact.class.php b/htdocs/contact.class.php
index 155816187f7..17d4722118f 100644
--- a/htdocs/contact.class.php
+++ b/htdocs/contact.class.php
@@ -147,14 +147,13 @@ class Contact
 		{
 		  echo "LDAP bind failed...";
 		}	 
-	      ldap_close($ds);
+	      ldap_close($ds);	    
+	    }
+	  else
+	    {
+	      echo "Unable to connect to LDAP server";
 	    }
 	}
-      else
-	{
-	  echo "Unable to connect to LDAP server";
-	}
-      
       return $result;
     }
 
@@ -287,11 +286,12 @@ class Contact
 		  echo "LDAP bind failed...";
 		}	      	      
 	      ldap_close($ds);
+	    
+	    }
+	  else
+	    {
+	      echo "Unable to connect to LDAP server";
 	    }
-	}
-      else
-	{
-	  echo "Unable to connect to LDAP server";
 	}
       
       return $result;
-- 
GitLab