summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2010-08-01 11:39:57 +0200
committerRemi Collet <fedora@famillecollet.com>2010-08-01 11:39:57 +0200
commitf4e36790800395d4f5287c3ac80c770e9d25a623 (patch)
tree3cae5249ced6a70c6b87629bc4170d27d5ef187a
parentd1e52ca9bc784d8d7e324a93b732f05e39a19706 (diff)
don't display empty date
-rw-r--r--index.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/index.php b/index.php
index 0c163b1..24d4fbd 100644
--- a/index.php
+++ b/index.php
@@ -58,7 +58,9 @@ try {
),
'sub_name' => $repo->sub,
'url' => $repo->url,
- 'date' => date("r", $repo->stamp)
+ 'date' => ($repo->stamp
+ ? date("r", $repo->stamp)
+ : '')
);
}
$smarty->assign('repositories', $repositories);