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:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user