re-added last item date in admin user page. relative_date return 'never' if null is passed

This commit is contained in:
Fabio Comuni 2011-06-29 16:06:32 +02:00
parent baead9f4c8
commit f4a1820110
3 changed files with 16 additions and 7 deletions

View file

@ -177,7 +177,7 @@ function relative_date($posted_date) {
$abs = strtotime($localtime);
if ($posted_date === '0000-00-00 00:00:00' || $abs === False) {
if (is_null($posted_date) || $posted_date === '0000-00-00 00:00:00' || $abs === False) {
return t('never');
}