1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-02 12:48:26 +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

@@ -88,7 +88,6 @@ class convert
break; break;
} }
return strftime($mask, $datestamp); return strftime($mask, $datestamp);
} }
@@ -102,7 +101,7 @@ class convert
function convert($string=null, $mask = 'inputdate') function convert($string=null, $mask = 'inputdate')
{ {
if($string == null) return false; 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);
} }