diff --git a/lib/WebGUI/Operation/Profile.pm b/lib/WebGUI/Operation/Profile.pm index be0dd9166..f151b3bb9 100644 --- a/lib/WebGUI/Operation/Profile.pm +++ b/lib/WebGUI/Operation/Profile.pm @@ -162,8 +162,7 @@ sub validateProfileData { my $errors = $retHash->{errors}; my $format = "
  • %s
  • "; - my $warning = ""; - my $error = ""; + map { $warning .= sprintf($format,$_) }@{$warnings}; map { $error .= sprintf($format,$_) }@{$errors}; @@ -211,4 +210,4 @@ sub www_viewProfile { } -1; \ No newline at end of file +1;