From c7ccc5c219db95afad2181f7e58459f213e4c5ac Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Sat, 6 Jan 2007 14:29:10 +0000 Subject: [PATCH] fixed error messages --- lam/lib/modules/inetOrgPerson.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lam/lib/modules/inetOrgPerson.inc b/lam/lib/modules/inetOrgPerson.inc index 209d5427..77dfb1c5 100644 --- a/lam/lib/modules/inetOrgPerson.inc +++ b/lam/lib/modules/inetOrgPerson.inc @@ -728,11 +728,11 @@ class inetOrgPerson extends baseModule { if ($_POST['form_subpage_inetOrgPerson_attributes_back']) return array(); $messages = array(); if ($_POST['userPassword'] != $_POST['userPassword2']) { - $messages['userPassword'][] = $this->messages['userPassword'][0]; + $messages[] = $this->messages['userPassword'][0]; } else { if (!get_preg($_POST['userPassword'], 'password')) { - $messages['userPassword'][] = $this->messages['userPassword'][1]; + $messages[] = $this->messages['userPassword'][1]; } else { $this->attributes['userPassword'][0] = $_POST['userPassword']; @@ -776,7 +776,7 @@ class inetOrgPerson extends baseModule { $this->attributes['jpegPhoto'][0] = $data; } else { - $messages['photo'][] = $this->messages['photo'][0]; + $messages[] = $this->messages['photo'][0]; } return $messages; }