From 4ebe624fc8004a26b0a0288fe204009bb6aeccb1 Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 21 Feb 2008 10:29:54 +0000 Subject: [PATCH] Updated Package list saving. -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 | 7 +++---- plugins/personal/generic/class_user.inc | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/plugins/admin/fai/class_faiPackage.inc b/plugins/admin/fai/class_faiPackage.inc index 18a7aeae7..866b61a31 100644 --- a/plugins/admin/fai/class_faiPackage.inc +++ b/plugins/admin/fai/class_faiPackage.inc @@ -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")); } - } } } diff --git a/plugins/personal/generic/class_user.inc b/plugins/personal/generic/class_user.inc index 79cda297b..8993f4e40 100644 --- a/plugins/personal/generic/class_user.inc +++ b/plugins/personal/generic/class_user.inc @@ -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]); -- 2.30.2