[vhffs-dev] [1326] return signature only if a true signature exists

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


Revision: 1326
Author:   gradator
Date:     2009-01-11 20:13:37 +0100 (Sun, 11 Jan 2009)

Log Message:
-----------
return signature only if a true signature exists

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


Modified: trunk/vhffs-api/src/Vhffs/Services/MailingList.pm
===================================================================
--- trunk/vhffs-api/src/Vhffs/Services/MailingList.pm	2009-01-11 18:35:26 UTC (rev 1325)
+++ trunk/vhffs-api/src/Vhffs/Services/MailingList.pm	2009-01-11 19:13:37 UTC (rev 1326)
@@ -391,7 +391,8 @@
 sub get_signature
 {
     my $self = shift;
-    return $self->{signature};
+    return $self->{signature} if defined $self->{signature} and $self->{signature} !~ /^\s*$/;
+    return undef;
 }
 
 sub set_signature


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