// 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"];
$this->open(true);
} else {
- $this->set_error(_("Invalid argument to constructor"));
+ $this->set_error("Invalid argument to constructor");
}
}