[Rt-commit] rt branch, 4.2-trunk, updated. rt-4.2.5-61-g4281fa2

Alex Vandiver alexmv at bestpractical.com
Fri Jun 20 16:02:48 EDT 2014


The branch, 4.2-trunk has been updated
       via  4281fa28f0ed48b55985ca2dcaf4020f7851d4a9 (commit)
      from  cc9b240e356b59e2af4a5393e241b197280f5617 (commit)

Summary of changes:
 lib/RT/Attachment.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

- Log -----------------------------------------------------------------
commit 4281fa28f0ed48b55985ca2dcaf4020f7851d4a9
Author: Alex Vandiver <alexmv at bestpractical.com>
Date:   Fri Jun 20 15:55:44 2014 -0400

    Warnings avoidance -- some users (like the system user) have an undef EmailAddress

diff --git a/lib/RT/Attachment.pm b/lib/RT/Attachment.pm
index c7aecb5..c4f479c 100644
--- a/lib/RT/Attachment.pm
+++ b/lib/RT/Attachment.pm
@@ -531,7 +531,7 @@ sub Addresses {
     my $self = shift;
 
     my %data = ();
-    my $current_user_address = lc $self->CurrentUser->EmailAddress;
+    my $current_user_address = lc($self->CurrentUser->EmailAddress || '');
     foreach my $hdr (@ADDRESS_HEADERS) {
         my @Addresses;
         my $line = $self->GetHeader($hdr);

-----------------------------------------------------------------------


More information about the rt-commit mailing list