From: hickert Date: Tue, 12 Jul 2005 07:04:16 +0000 (+0000) Subject: A curious error, couldn't save a new user anymore, when publicVisible was set to no X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ba25653a221a7c3064188925ba40b08ed1dafd50;p=gosa.git A curious error, couldn't save a new user anymore, when publicVisible was set to no Ldap Error : Protocoll Error : (no values for attribute type) Fixed this git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@939 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/personal/generic/class_user.inc b/plugins/personal/generic/class_user.inc index 1df10314c..d1594a8a1 100644 --- a/plugins/personal/generic/class_user.inc +++ b/plugins/personal/generic/class_user.inc @@ -612,6 +612,12 @@ class user extends plugin /* Remove attribute if set to "nein" */ if ($this->publicVisible == "nein"){ $this->attrs['publicVisible']= array(); + if($this->new){ + unset($this->attrs['publicVisible']); + }else{ + $this->attrs['publicVisible']=array(); + } + } }