Permalink
Browse files

Don't try and print the last access date if it doesn't exist

  • Loading branch information...
1 parent c646b70 commit d21fef3a02561ea65c4d2c9641f98752149ecc3a martin committed Sep 6, 2002
Showing with 5 additions and 1 deletion.
  1. +5 −1 user/view.php
View
@@ -106,7 +106,11 @@
print_row("ICQ:","<A HREF=\"http://wwp.icq.com/$user->icq\">$user->icq <IMG SRC=\"http://online.mirabilis.com/scripts/online.dll?icq=$user->icq&img=5\" WIDTH=18 HEIGHT=18 BORDER=0></A>");
}
- $datestring = userdate($user->lastaccess)."&nbsp (".format_time(time() - $user->lastaccess).")";
+ if ($user->lastaccess) {
+ $datestring = userdate($user->lastaccess)."&nbsp (".format_time(time() - $user->lastaccess).")";
+ } else {
+ $datestring = "-";
+ }
print_row(get_string("lastaccess").":", $datestring);
echo "</TABLE>";

0 comments on commit d21fef3

Please sign in to comment.