Code

Updated Package list saving.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 21 Feb 2008 10:29:54 +0000 (10:29 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 21 Feb 2008 10:29:54 +0000 (10:29 +0000)
-Fixed undefined index

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

plugins/admin/fai/class_faiPackage.inc
plugins/personal/generic/class_user.inc

index 18a7aeae70c5a2a9b719dc7fa4dd1ef7fe46f9f0..866b61a3105d9b44e1ec7460dfeb4f7d95307471 100644 (file)
@@ -531,9 +531,9 @@ class faiPackage extends plugin
         /* cehck if object already exists */
         $ldap->cat($pkgdn,array("objectClass"));
 
-       /* Tag object */
-       $this->tag_attrs(&$pkgattrs, $sub_dn, $this->gosaUnitTag);
-  
+        /* Tag object */
+        $this->tag_attrs(&$pkgattrs, $pkgdn, $this->gosaUnitTag);
+
         if(in_array($pkgattrs['FAIvariableType'],array("boolean","multiselect","password","select","string","text"))){
           if($ldap->count()!=0){
             $ldap->cd($pkgdn);
@@ -548,7 +548,6 @@ class faiPackage extends plugin
           }
           show_ldap_error($ldap->get_error(), _("Saving FAI package entry failed"));
         }
-
       }
     }
   }
index 79cda297bab86e1adf83cd5811d8e529da3435e7..8993f4e40dcf4dc2cb416a42dd02878492be7859 100644 (file)
@@ -579,7 +579,7 @@ class user extends plugin
 
     /* Delete references to object groups */
     $ldap->cd ($this->config->current['BASE']);
-    $ldap->search ("(&(objectClass=gosaGroupOfNames)(member=".LDAP::prepare4filter($this->dn)."))", array("cn"));
+    $ldap->search ("(&(objectClass=gosaGroupOfNames)(member=".@LDAP::prepare4filter($this->dn)."))", array("cn"));
     while ($ldap->fetch()){
       $og= new ogroup($this->config, $ldap->getDN());
       unset($og->member[$this->dn]);