From: martin Date: Mon, 2 Sep 2002 07:18:13 +0000 (+0000) Subject: Print the user's stated city/country as well X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=cffbaff2dc4f3d6900c50d95645353c6ca7363b8;p=moodle.git Print the user's stated city/country as well --- diff --git a/lib/ipatlas/plot.php b/lib/ipatlas/plot.php index 9cbbb7eec4..de4d0ffe0b 100644 --- a/lib/ipatlas/plot.php +++ b/lib/ipatlas/plot.php @@ -5,7 +5,7 @@ include("plot.inc"); if (isset($user)) { $user = get_record("user", "id", $user); - $username = "$user->firstname $user->lastname"; + $username = "$user->firstname $user->lastname [$user->city, $user->country] : "; } else { $username = ""; } @@ -112,7 +112,7 @@ print ' '; if(isset($address)) { -print "$username, $values[desc]"; +print "$username $values[desc]"; } $PHP_SELF = $HTTP_SERVER_VARS['PHP_SELF'];