From 913802f0f6d86ef8ca5850e10a090bc2b91d5149 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Wed, 3 Mar 2010 19:39:00 -0800 Subject: [PATCH] And again... --- lib/WebGUI/Account/Inbox.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/WebGUI/Account/Inbox.pm b/lib/WebGUI/Account/Inbox.pm index 47bf74360..fa87a856c 100644 --- a/lib/WebGUI/Account/Inbox.pm +++ b/lib/WebGUI/Account/Inbox.pm @@ -1383,8 +1383,8 @@ sub www_sendMessageSave { if (!$notificationAddresses) { $messageOptions->{no_email} = 1; } else { - my $template = WebGUI::Asset::Template->new($session, $self->getInboxNotificationTemplateId); - if ($template) { + my $template = eval { WebGUI::Asset::Template->newById($session, $self->getInboxNotificationTemplateId); }; + if (! Exception::Class->caught() ) { ##Create template variables my $var = { fromUsername => $fromUser->username,