Merge branch 'MDL-73692-401-Add-support-for-missing-timestamps-to-rss-block' of https://github.com/melanietreitinger/moodle into MOODLE_401_STABLE
This commit is contained in:
@@ -92,7 +92,11 @@ class renderer extends \plugin_renderer_base {
|
||||
* @return string
|
||||
*/
|
||||
public function format_published_date($timestamp) {
|
||||
return \core_date::strftime(get_string('strftimerecentfull', 'langconfig'), $timestamp);
|
||||
if (empty($timestamp)) {
|
||||
return '';
|
||||
} else {
|
||||
return \core_date::strftime(get_string('strftimerecentfull', 'langconfig'), $timestamp);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user