projects
/
e-DoKo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Only show new players from the last 45 days
[e-DoKo.git]
/
include
/
user.php
diff --git
a/include/user.php
b/include/user.php
index 764c694fbe60567e719b54421467e82bf3dc6319..7acf72600a620a3095c4b6ecd304b811784e098b 100644
(file)
--- a/
include/user.php
+++ b/
include/user.php
@@
-314,11
+314,14
@@
else
if($count<10)
echo '<p class="newbiehint">'._('You can start new games using the link in the top right corner!')."</p>\n";
if($count<10)
echo '<p class="newbiehint">'._('You can start new games using the link in the top right corner!')."</p>\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);
$names = DB_get_names_of_new_logins(5);
- echo '<h4>'._('New Players').":</h4>\n<p>\n";
- echo implode(", ",$names).",...\n";
- echo "</p>\n";
+ if ($names)
+ {
+ echo '<h4>'._('New Player(s)').":</h4>\n<p>\n";
+ echo implode(", ",$names).",...\n";
+ echo "</p>\n";
+ };
/* display last 5 users that logged on */
echo '<h4>'._('Players last logged in').":</h4>\n<p>\n";
/* display last 5 users that logged on */
echo '<h4>'._('Players last logged in').":</h4>\n<p>\n";