Commit c2d184dc authored by Martyn Smith's avatar Martyn Smith Committed by Martyn Smith
Browse files

Fixed MyViews display when dates aren't set

parent 250f4960
......@@ -57,6 +57,8 @@ $string['mainmenu'] = 'Main menu';
$string['updatefailed'] = 'Update failed';
$string['declinerequest'] = 'Decline request';
$string['strftimenotspecified'] = 'Not specified';
// auth
$string['accessforbiddentoadminsection'] = 'You are forbidden from accessing the administration section';
$string['accountdeleted'] = 'Sorry, your account has been deletd';
......
......@@ -768,6 +768,9 @@ class Plugin {
*/
function format_date($date, $formatkey='strftimedatetime') {
if (empty($date)) {
return get_string('strftimenotspecified');
}
return strftime(get_string($formatkey), $date);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment