[vhffs-dev] [2212] Avoid sending email to user with undefined email address.

[ Thread Index | Date Index | More vhffs.org/vhffs-dev Archives ]


Revision: 2212
Author:   lau
Date:     2012-10-14 17:38:49 +0200 (Sun, 14 Oct 2012)
Log Message:
-----------
Avoid sending email to user with undefined email address.

Modified Paths:
--------------
    trunk/vhffs-api/src/Vhffs/User.pm

Modified: trunk/vhffs-api/src/Vhffs/User.pm
===================================================================
--- trunk/vhffs-api/src/Vhffs/User.pm	2012-09-06 21:51:30 UTC (rev 2211)
+++ trunk/vhffs-api/src/Vhffs/User.pm	2012-10-14 15:38:49 UTC (rev 2212)
@@ -495,6 +495,7 @@
 sub send_mail_user {
 	use Vhffs::Functions;
 	my ( $user, $subject, $content ) = @_;
+	return undef unless defined $user->get_mail;
 
 	my $vhffs = $user->get_vhffs;
 


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/