From: cajus Date: Mon, 31 Mar 2008 13:12:58 +0000 (+0000) Subject: Fixed $skip X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=95b715783e3e6f31e2da0532c18697f9ed6fcc00;p=gosa.git Fixed $skip git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10091 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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;