From 554d9b080b4be1c3ddfae75d79a0789da8c80cf2 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 7 Jan 2001 19:21:28 +0000 Subject: - fixed 2 small bugs in account.php - drastically improved administration section - drastically revamped story administration: added new feature to schedule the publishing of stories - applied correct naming conventions to submission.php - fixed 1 small glitch in boxes - somewhat expanded the documentation = changed one SQL table - updated the faq with info on drupal - ... and more things I forgot about --- includes/function.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'includes/function.inc') diff --git a/includes/function.inc b/includes/function.inc index a92d349d5..adcb4c518 100644 --- a/includes/function.inc +++ b/includes/function.inc @@ -68,10 +68,10 @@ function format_interval($timestamp) { $output .= floor($timestamp / 60) ." min "; $timestamp = $timestamp % 60; } - if ($timestamp >= 0) { + if ($timestamp > 0) { $output .= "$timestamp sec"; } - return $output; + return ($output) ? $output : "0 sec"; } function format_date($timestamp, $type = "medium") { -- cgit v1.2.3