Commit a5fd98d5 authored by Benjamin Sonntag's avatar Benjamin Sonntag
Browse files

saying 'never' instead of 0/0 at 0:0 when a user never connected before at main

parent c0ad9325
......@@ -37,9 +37,13 @@ include_once("menu.php");
echo "<p>";
__("Last Login: ");
echo format_date('the %3$d-%2$d-%1$d at %4$d:%5$d',$mem->user["lastlogin"]);
printf("&nbsp;"._('from: <code> %1$s </code>')."<br />",$mem->user["lastip"]);
echo "</p>";
if ($mem->user["lastlogin"]=="0000-00-00 00:00:00") {
__("Never");
} else {
echo format_date('the %3$d-%2$d-%1$d at %4$d:%5$d',$mem->user["lastlogin"]);
printf("&nbsp;"._('from: <code> %1$s </code>')."<br />",$mem->user["lastip"]);
}
echo "</p>";
if ($mem->user["lastfail"]) {
printf(_("%1\$d login failed since last login")."<br />",$mem->user["lastfail"]);
......
Supports Markdown
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