fixed some bugs in url parsing, and in conf.pl
[squirrelmail.git] / functions / abook_ldap_server.php
index 3ed9e413634655e6d924370a779b52e6873d0d4d..64d949f7d518263a6e9d977a99d835e424761eef 100644 (file)
 
      // Constructor. Connects to database
      function abook_ldap_server($param) {
+       if(!function_exists("ldap_connect")) {
+         $this->set_error("LDAP support missing from PHP");
+         return;
+       }
        if(is_array($param)) {
         $this->server = $param["host"];
         $this->basedn = $param["base"];
@@ -53,7 +57,7 @@
         
         $this->open(true);
        } else {
-        $this->set_error(_("Invalid argument to constructor"));
+        $this->set_error("Invalid argument to constructor");
        }
      }