From d32045874ab6b9beb0fb3e028703ec7fe71897cd Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 25 Apr 2008 08:22:15 +0000 Subject: [PATCH] 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 --- gosa-core/plugins/personal/generic/class_user.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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] != ""){ -- 2.30.2