From 46297c644806a3d87bfa2da5907a7d058713fc9f Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 9 Dec 2008 07:18:49 +0000 Subject: [PATCH] Uodated connectivity kolab account checks. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13190 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../connectivity/kolab/class_kolabAccount.inc | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/gosa-plugins/kolab/personal/connectivity/kolab/class_kolabAccount.inc b/gosa-plugins/kolab/personal/connectivity/kolab/class_kolabAccount.inc index 58db9943b..696f2b358 100644 --- a/gosa-plugins/kolab/personal/connectivity/kolab/class_kolabAccount.inc +++ b/gosa-plugins/kolab/personal/connectivity/kolab/class_kolabAccount.inc @@ -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)){ -- 2.30.2