From: hickert Date: Thu, 11 Oct 2007 13:20:45 +0000 (+0000) Subject: Skip password only assignments in gotoShare remove entry X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=b50d027eaca2e8ab93cabd192235a0fe68ee07c4;p=gosa.git Skip password only assignments in gotoShare remove entry git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7518 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/systems/class_goShareServer.inc b/plugins/admin/systems/class_goShareServer.inc index 6f6347627..6a9f8424c 100644 --- a/plugins/admin/systems/class_goShareServer.inc +++ b/plugins/admin/systems/class_goShareServer.inc @@ -223,7 +223,7 @@ class goShareServer extends goService{ /* Check if the share is used by someone */ $ldap = $this->config->get_ldap_link(); $ldap->cd($this->config->current['BASE']); - $ldap->search("(|(gotoProfileServer=*|$id)(gotoShare=*|$id|*))", array("cn")); + $ldap->search("(|(gotoProfileServer=*|$id)(gotoShare=*|$id|*||*))", array("cn")); $cnt= $ldap->count(); if ($cnt){ $msg= sprintf(_("The share can't be removed since it is still used by %d users:"), $cnt);