Enabled defaults to ORM::display(), if values dont have a value
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user