From dd925069d7ffca64f28017ec62e8ebe5abba5d32 Mon Sep 17 00:00:00 2001 From: Arun Persaud Date: Sat, 8 Mar 2014 22:23:39 -0800 Subject: Only show new players from the last 45 days should be enough to get them playing in new games. --- include/user.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'include/user.php') diff --git a/include/user.php b/include/user.php index 764c694..7acf726 100644 --- a/include/user.php +++ b/include/user.php @@ -314,11 +314,14 @@ else if($count<10) echo '

'._('You can start new games using the link in the top right corner!')."

\n"; - /* display last 5 users that have signed up to e-DoKo */ + /* display last 5 users that have signed up to e-DoKo within the 45 days */ $names = DB_get_names_of_new_logins(5); - echo '

'._('New Players').":

\n

\n"; - echo implode(", ",$names).",...\n"; - echo "

\n"; + if ($names) + { + echo '

'._('New Player(s)').":

\n

\n"; + echo implode(", ",$names).",...\n"; + echo "

\n"; + }; /* display last 5 users that logged on */ echo '

'._('Players last logged in').":

\n

\n"; -- cgit v1.2.3-18-g5258