mirror of
https://github.com/moodle/moodle.git
synced 2025-03-24 17:40:26 +01:00
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:
commit
daa7e5b4e2
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user