mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 12:40:01 +01:00
MDL-73692 blocks: Add support for missing timestamps to rss block.
This commit is contained in:
parent
0780e87f06
commit
e5709fc588
@ -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