From: hickert Date: Wed, 3 May 2006 08:44:21 +0000 (+0000) Subject: Fixed phone account remove_from_parent if this is was no account. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=0511bb7ea17dec29d5efabeddfe853b544fd8181;p=gosa.git Fixed phone account remove_from_parent if this is was no account. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3190 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/gofon/phoneaccount/class_phoneAccount.inc b/plugins/gofon/phoneaccount/class_phoneAccount.inc index 0c4363cde..b0dd42be2 100644 --- a/plugins/gofon/phoneaccount/class_phoneAccount.inc +++ b/plugins/gofon/phoneaccount/class_phoneAccount.inc @@ -1014,6 +1014,8 @@ $ldap->modify ($this->attrs); function remove_from_parent() { + if(!$this->initially_was_account) return; + foreach($this->attributes as $key=>$val){ if(in_array($val,array("uid","cn"))){ unset($this->attributes[$key]);