From 95b715783e3e6f31e2da0532c18697f9ed6fcc00 Mon Sep 17 00:00:00 2001 From: cajus Date: Mon, 31 Mar 2008 13:12:58 +0000 Subject: [PATCH] Fixed $skip git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10091 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/plugins/personal/generic/class_user.inc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gosa-core/plugins/personal/generic/class_user.inc b/gosa-core/plugins/personal/generic/class_user.inc index aa37dc920..6a477b9da 100644 --- a/gosa-core/plugins/personal/generic/class_user.inc +++ b/gosa-core/plugins/personal/generic/class_user.inc @@ -1312,6 +1312,10 @@ class user extends plugin /* Walk through govattrs */ foreach ($this->govattrs as $val){ + if (in_array($val, $skip)){ + continue; + } + if (isset($this->attrs["$val"][0])){ /* If attribute is set, replace dynamic parts: @@ -1330,7 +1334,7 @@ class user extends plugin } /* Get back uid/sn/givenName - only write if nothing's skipped */ - if ($this->parent !== NULL && count($skip) != 0){ + if ($this->parent !== NULL && count($skip) == 0){ $this->uid= $this->parent->uid; $this->sn= $this->parent->sn; $this->givenName= $this->parent->givenName; -- 2.30.2