From 5f36fbb30f49bcfff6a9e904213ceaad8f070050 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Fri, 5 Jan 2007 23:57:52 +0000 Subject: [PATCH] fix typo for session->warn --- lib/WebGUI/User.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/WebGUI/User.pm b/lib/WebGUI/User.pm index 089a6a4d4..8a6cca3de 100644 --- a/lib/WebGUI/User.pm +++ b/lib/WebGUI/User.pm @@ -462,7 +462,7 @@ sub profileField { $fieldName = shift; $value = shift; if (!exists $self->{_profile}{$fieldName} && !$self->session->db->quickArray("SELECT COUNT(*) FROM userProfileField WHERE fieldName = ?", [$fieldName])) { - $self->session->warn("No such profile field: $fieldName"); + $self->session->errorHandler->warn("No such profile field: $fieldName"); return undef; } if (defined $value) {