[Rt-commit] r5392 - in rt/branches/3.7-EXPERIMENTAL: .
ruz at bestpractical.com
ruz at bestpractical.com
Thu Jun 15 19:55:11 EDT 2006
Author: ruz
Date: Thu Jun 15 19:55:10 2006
New Revision: 5392
Modified:
rt/branches/3.7-EXPERIMENTAL/ (props changed)
rt/branches/3.7-EXPERIMENTAL/lib/RT/Date.pm
Log:
r3207 at cubic-pc: cubic | 2006-06-16 03:42:29 +0400
* don't warn on undef in AddSeconds
Modified: rt/branches/3.7-EXPERIMENTAL/lib/RT/Date.pm
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/lib/RT/Date.pm (original)
+++ rt/branches/3.7-EXPERIMENTAL/lib/RT/Date.pm Thu Jun 15 19:55:10 2006
@@ -474,7 +474,7 @@
sub AddSeconds {
my $self = shift;
- my $delta = shift;
+ my $delta = shift or return $self->Unix;
$self->Set(Format => 'unix', Value => ($self->Unix + $delta));
More information about the Rt-commit
mailing list