[Rt-commit] r6307 - in rt/branches/3.7-EXPERIMENTAL: .
ruz at bestpractical.com
ruz at bestpractical.com
Fri Oct 27 01:39:22 EDT 2006
Author: ruz
Date: Fri Oct 27 01:39:20 2006
New Revision: 6307
Modified:
rt/branches/3.7-EXPERIMENTAL/ (props changed)
rt/branches/3.7-EXPERIMENTAL/lib/RT/Transaction_Overlay.pm
Log:
r4045 at cubic-pc: cubic | 2006-10-27 02:26:26 +0400
* store and test self->Attachments->First at once
Modified: rt/branches/3.7-EXPERIMENTAL/lib/RT/Transaction_Overlay.pm
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/lib/RT/Transaction_Overlay.pm (original)
+++ rt/branches/3.7-EXPERIMENTAL/lib/RT/Transaction_Overlay.pm Fri Oct 27 01:39:20 2006
@@ -347,13 +347,9 @@
sub ContentObj {
my $self = shift;
- # If we don\'t have any content, return undef now.
- unless ( $self->Attachments->First ) {
- return (undef);
- }
-
+ # If we don't have any content, return undef now.
# Get the set of toplevel attachments to this transaction.
- my $Attachment = $self->Attachments->First();
+ return undef unless my $Attachment = $self->Attachments->First;
# If it's a message or a plain part, just return the
# body.
More information about the Rt-commit
mailing list