summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2010-08-01 17:39:57 +0800
committerJohan Cwiklinski <trasher@x-tnd.be>2010-08-01 18:17:04 +0800
commit7ed7a3829a298742cc40c83f8c898a0f23c4b10e (patch)
tree3cae5249ced6a70c6b87629bc4170d27d5ef187a
parent2091997e6d1f10b2ea0093483678541c5bec35f3 (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);