[Jifty-commit] r4243 - jifty/trunk/lib/Jifty

jifty-commit at lists.jifty.org jifty-commit at lists.jifty.org
Tue Oct 16 07:07:25 EDT 2007


Author: clkao
Date: Tue Oct 16 07:07:17 2007
New Revision: 4243

Modified:
   jifty/trunk/lib/Jifty/Notification.pm

Log:
Don't require recipients in Jifty::Notificaiton be objects.

Modified: jifty/trunk/lib/Jifty/Notification.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Notification.pm	(original)
+++ jifty/trunk/lib/Jifty/Notification.pm	Tue Oct 16 07:07:17 2007
@@ -94,7 +94,7 @@
     my $self       = shift;
     my @recipients = $self->recipients;
     my $to         = join( ', ',
-        map { ( $_->can('email') ? $_->email : $_ ) } grep {$_} @recipients );
+        map { ( ref $_ && $_->can('email') ? $_->email : $_ ) } grep {$_} @recipients );
     $self->log->debug("Sending a ".ref($self)." to $to"); 
     return unless ($to);
     my $message = "";


More information about the Jifty-commit mailing list