Don't show dates that aren't set on the front-end

This commit is contained in:
james 2008-11-03 05:18:23 +00:00
parent e5e863e3f7
commit d4e604fed5

View File

@ -31,11 +31,10 @@
while($r=mysql_fetch_object($q))
{
$trclass = ($trclass == 'odd') ? 'even' : 'odd';
if($r->date == '0000-00-00 00:00:00')
$d = i18n("not specified");
else
if($r->date != '0000-00-00 00:00:00') {
$d = format_datetime($r->udate);
echo "<tr class=\"$trclass\"><td>".i18n($r->description)."</td><td>$d</td></tr>";
echo "<tr class=\"$trclass\"><td>".i18n($r->description)."</td><td>$d</td></tr>";
}
}
echo "</table>";