Code

Updated Share Plugin.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 2 Oct 2008 06:16:54 +0000 (06:16 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 2 Oct 2008 06:16:54 +0000 (06:16 +0000)
-Fixed error message that occured when removing shares.

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12588 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/goto/admin/systems/services/shares/class_goShareServer.inc

index e32e9555eef1fa940a31162bc817878ed264e209..833239a230670617e8d20440761ec5dcfc6341c0 100644 (file)
@@ -226,7 +226,7 @@ class goShareServer extends goService{
     $ldap = $this->config->get_ldap_link();
     $ldap->cd($this->config->current['BASE']);
     $ldap->search("(|(gotoProfileServer=*|$id)(gotoShare=*|$id|*||*))", array("cn"));
-    if ($ldap->count != 0){
+    if ($ldap->count() != 0){
       while ($attrs= $ldap->fetch()){
         $obj[$ldap->getDN()]= $attrs['cn'][0];
       }