forked from science-ation/science-ation
Don't show dates that aren't set on the front-end
This commit is contained in:
parent
e5e863e3f7
commit
d4e604fed5
@ -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>";
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user