Skip to content
Permalink
Browse files

Item11000: Don't pass Foswiki::Time an undef value

git-svn-id: http://svn.foswiki.org/trunk@12232 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information...
PaulHarvey PaulHarvey
PaulHarvey authored and PaulHarvey committed Jul 25, 2011
1 parent a3aacb9 commit 2655d72071af2f51bb379992b2d32b353d1e9a98
Showing with 7 additions and 4 deletions.
  1. +7 −4 core/lib/Foswiki/Meta.pm
@@ -1553,11 +1553,14 @@ sub getRev1Info {
or $attr eq 'created' )
{
$info->{created} = $ri->{date};
require Foswiki::Time;
$info->{createdate} = Foswiki::Time::formatTime( $ri->{date} );
# Don't pass Foswiki::Time an undef value
if (defined $ri->{date}) {
require Foswiki::Time;
$info->{createdate} = Foswiki::Time::formatTime( $ri->{date} );

#TODO: wow thats disgusting.
$info->{created} = $info->{createlongdate} = $info->{createdate};
#TODO: wow thats disgusting.
$info->{created} = $info->{createlongdate} = $info->{createdate};
}
}
}
return $info->{$attr};

0 comments on commit 2655d72

Please sign in to comment.
You can’t perform that action at this time.