From: hickert Date: Mon, 7 Apr 2008 06:56:16 +0000 (+0000) Subject: Updated user generic X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=2298127edf119f2372db894ad9f8ef202b4ef903;p=gosa.git Updated user generic -Remove from parent: Only call "passwordMethod::remove_from_parent" if detected method is a valid class. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10216 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 6a477b9da..15ab39c97 100644 --- a/gosa-core/plugins/personal/generic/class_user.inc +++ b/gosa-core/plugins/personal/generic/class_user.inc @@ -674,8 +674,12 @@ class user extends plugin { /* Remove password extension */ $temp= passwordMethod::get_available_methods(); - $this->pwObject= new $temp[$this->pw_storage]($this->config,$this->dn); - $this->pwObject->remove_from_parent(); + + /* Remove password method from user account */ + if(isset($temp[$this->pw_storage]) && class_available($temp[$this->pw_storage])){ + $this->pwObject= new $temp[$this->pw_storage]($this->config,$this->dn); + $this->pwObject->remove_from_parent(); + } /* Remove user */ $ldap= $this->config->get_ldap_link();