Skip to content

Commit

Permalink
Item240: minor whoopsie, can get an uninitialised var warning without…
Browse files Browse the repository at this point in the history
… this

git-svn-id: http://svn.foswiki.org/trunk@849 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
CrawfordCurrie authored and CrawfordCurrie committed Nov 22, 2008
1 parent 0c1840d commit 600b3f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/lib/Foswiki/Time.pm
Expand Up @@ -409,7 +409,7 @@ sub parseInterval {
}

if (!defined($start)) {
$start = $end - _parseDuration( $first );
$start = ($end || 0) - _parseDuration( $first );
}
if (!defined($end)) {
$end = $start + _parseDuration( $last );
Expand Down

0 comments on commit 600b3f8

Please sign in to comment.