Minor HTML change to make Opera see the message list like Netscape
[squirrelmail.git] / functions / addressbook.php
index 21b6f1c679e726bbe1471642ab0927d94c835478..595507cc428b398dc434970942d96903aadd8e32 100644 (file)
@@ -33,8 +33,8 @@
       if($onlylocal)
        return $abook;
 
-      // Load configured LDAP servers
-      if(is_array($ldap_server)) {
+      // Load configured LDAP servers (if PHP has LDAP support)
+      if(is_array($ldap_server) && function_exists("ldap_connect")) {
         reset($ldap_server);
         while(list($undef,$param) = each($ldap_server)) {
            if(is_array($param)) {
 
         // Check that specified backend is writable
         if(!$this->backends[$bnum]->writeable) {
-           $this->error = _("Addressbook $bnum is read-only");
+           $this->error = sprintf(_("Addressbook %s is read-only", $bnum));
            return false;
         }