From 0511bb7ea17dec29d5efabeddfe853b544fd8181 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 3 May 2006 08:44:21 +0000 Subject: [PATCH] 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 --- plugins/gofon/phoneaccount/class_phoneAccount.inc | 2 ++ 1 file changed, 2 insertions(+) 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]); -- 2.30.2