Enabled defaults to ORM::display(), if values dont have a value

This commit is contained in:
Deon George
2015-10-08 16:31:33 +11:00
parent fdd06daed3
commit 01a370dcf2
2 changed files with 5 additions and 2 deletions

View File

@@ -21,7 +21,7 @@ abstract class lnApp_Site {
* Show a date using a site configured format
*/
public static function Date($date) {
return (is_null($date) OR ! $date) ? '' : date(Kohana::$config->load('config')->date_format,$date);
return (is_null($date) OR ! is_numeric($date)) ? $date : date(Kohana::$config->load('config')->date_format,$date);
}
/**