Code

Uodated connectivity kolab account checks.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 9 Dec 2008 07:18:49 +0000 (07:18 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 9 Dec 2008 07:18:49 +0000 (07:18 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13190 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/kolab/personal/connectivity/kolab/class_kolabAccount.inc

index 58db9943b373c8f6f4adcc69da4484e3b271335a..696f2b358174ee1d96b32677e9e4aa3f8c0d1410 100644 (file)
@@ -172,14 +172,14 @@ class kolabAccount extends plugin
           }
         } else {
 
-          $ldap= $this->config->get_ldap_link();
-          $ldap->cd ($this->config->current['BASE']);
-          $ldap->search('(mail='.$address.')',array("mail"));
-          if ($ldap->count() == 0){
-            msg_dialog::display(_("Error"), msgPool::duplicated(_("Primary mail address")));
-          } else {
+#         $ldap= $this->config->get_ldap_link();
+#         $ldap->cd ($this->config->current['BASE']);
+#         $ldap->search('(mail='.$address.')',array("mail"));
+#         if ($ldap->count() == 0){
+#           msg_dialog::display(_("Error"), msgPool::duplicated(_("Primary mail address")));
+#         } else {
             $valid= TRUE;
-          }
+#          }
         }
 
         if ($valid){
@@ -347,7 +347,7 @@ class kolabAccount extends plugin
     $message= plugin::check();
 
     /* FBFuture is in days... */
-    if ($this->kolabFreeBusyFuture != ""){
+    if ($this->kolabFreeBusyFuture == ""){
       $message[]= msgPool::required(_("Free Busy future"));
     }
     if(!preg_match('/^[0-9]+$/', $this->kolabFreeBusyFuture)){
@@ -355,7 +355,7 @@ class kolabAccount extends plugin
     }
 
     /* Check for URL scheme... */
-    if(!empty($this->calFBURL)){
+    if(empty($this->calFBURL)){
       $message[]= msgPool::required(_("Free Busy url"));
     }
     if(!preg_match("/^http+(s)*:\/\//",$this->calFBURL)){