1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 11:50:30 +02:00

Fixed: Date wouldn't display under some circumstances.

This commit is contained in:
Cameron
2013-06-22 18:23:51 -07:00
parent 279abb0b2b
commit a5c9ff2cb9

View File

@@ -87,8 +87,7 @@ class convert
}
break;
}
return strftime($mask, $datestamp);
}
@@ -102,7 +101,7 @@ class convert
function convert($string=null, $mask = 'inputdate')
{
if($string == null) return false;
return is_integer($string) ? $this->convert_date($string, $mask) : $this->toTime($string, $mask);
return is_numeric($string) ? $this->convert_date($string, $mask) : $this->toTime($string, $mask);
}