projects
/
squirrelmail.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
made message highlighting be more flexible. You can now highlight messages
[squirrelmail.git]
/
functions
/
abook_ldap_server.php
diff --git
a/functions/abook_ldap_server.php
b/functions/abook_ldap_server.php
index 3ed9e413634655e6d924370a779b52e6873d0d4d..64d949f7d518263a6e9d977a99d835e424761eef 100644
(file)
--- a/
functions/abook_ldap_server.php
+++ b/
functions/abook_ldap_server.php
@@
-37,6
+37,10
@@
// Constructor. Connects to database
function abook_ldap_server($param) {
// 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"];
if(is_array($param)) {
$this->server = $param["host"];
$this->basedn = $param["base"];
@@
-53,7
+57,7
@@
$this->open(true);
} else {
$this->open(true);
} else {
- $this->set_error(
_("Invalid argument to constructor")
);
+ $this->set_error(
"Invalid argument to constructor"
);
}
}
}
}