Skip to content

Commit

Permalink
MDL-4421 unwanted space in formatted time
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed Apr 16, 2007
1 parent ef7c98d commit f15eba9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/moodlelib.php
Expand Up @@ -966,10 +966,10 @@ function format_time($totalsecs, $str=NULL) {
if ($mins) $omins = $mins .' '. $sm;
if ($secs) $osecs = $secs .' '. $ss;

if ($years) return $oyears .' '. $odays;
if ($days) return $odays .' '. $ohours;
if ($hours) return $ohours .' '. $omins;
if ($mins) return $omins .' '. $osecs;
if ($years) return trim($oyears .' '. $odays);
if ($days) return trim($odays .' '. $ohours);
if ($hours) return trim($ohours .' '. $omins);
if ($mins) return trim($omins .' '. $osecs);
if ($secs) return $osecs;
return get_string('now');
}
Expand Down

0 comments on commit f15eba9

Please sign in to comment.