diff --git a/renderer.php b/renderer.php index 78d8fb69..6a1b441e 100644 --- a/renderer.php +++ b/renderer.php @@ -162,7 +162,9 @@ public function active_factors() { $timecreated = $userfactor->timecreated == '-' ? '-' : userdate($userfactor->timecreated, get_string('strftimedatetime')); $lastverified = $userfactor->lastverified; - if ($lastverified != '-') { + if ($lastverified == 0) { + $lastverified = '-'; + } else if ($lastverified != '-') { $lastverified = userdate($userfactor->lastverified, get_string('strftimedatetime')); $lastverified .= '
'; $lastverified .= get_string('ago', 'core_message', format_time(time() - $userfactor->lastverified));