From 23e78e73a94783270a03a056f19785a00a7ee468 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Tue, 30 Dec 2008 16:39:12 +0000 Subject: [PATCH] check password only if one is set --- lam/lib/modules/inetOrgPerson.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lam/lib/modules/inetOrgPerson.inc b/lam/lib/modules/inetOrgPerson.inc index bcfaf76f..c0cf3855 100644 --- a/lam/lib/modules/inetOrgPerson.inc +++ b/lam/lib/modules/inetOrgPerson.inc @@ -673,7 +673,7 @@ class inetOrgPerson extends baseModule { if ( !get_preg($this->attributes['title'][0], 'title')) $errors[] = $this->messages['title'][0]; if ( !get_preg($this->attributes['employeeType'][0], 'employeeType')) $errors[] = $this->messages['employeeType'][0]; if ( !get_preg($this->attributes['businessCategory'][0], 'businessCategory')) $errors[] = $this->messages['businessCategory'][0]; - if (isset($_POST['userPassword'])) { + if (isset($_POST['userPassword']) && ($_POST['userPassword'] != '')) { if ($_POST['userPassword'] != $_POST['userPassword2']) { $errors[] = $this->messages['userPassword'][0]; }