From: hickert Date: Fri, 25 Apr 2008 08:22:15 +0000 (+0000) Subject: Updated class_user.inc X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=d32045874ab6b9beb0fb3e028703ec7fe71897cd;p=gosa.git Updated class_user.inc -If no valid password method was be found for the current hash, the php execution was aborted. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10682 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 8d4e92706..3ae5f6214 100644 --- a/gosa-core/plugins/personal/generic/class_user.inc +++ b/gosa-core/plugins/personal/generic/class_user.inc @@ -186,7 +186,9 @@ class user extends plugin $matches= array(); if (preg_match ("/^{[^}]+}/", $this->attrs['userPassword'][0])){ $tmp= passwordMethod::get_method($this->attrs['userPassword'][0]); - $this->pw_storage= $tmp->get_hash(); + if(is_object($tmp)){ + $this->pw_storage= $tmp->get_hash(); + } } else { if ($this->attrs['userPassword'][0] != ""){