X-Git-Url: https://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=web%2Fbriskin5%2Fstat-day.php;h=d96cb6c626dadada6e43d88911c631ea704fcac4;hb=302c97f7ac81dfcc6fc8d8d44359f4f432e4618a;hp=a895d7c00cf6914d53762b1e0dbf7655f143e977;hpb=bef452514e4c78f5f13ad096b6643cd6d7d081f5;p=brisk.git
diff --git a/web/briskin5/stat-day.php b/web/briskin5/stat-day.php
index a895d7c..d96cb6c 100644
--- a/web/briskin5/stat-day.php
+++ b/web/briskin5/stat-day.php
@@ -141,7 +141,7 @@ function main_file($curtime)
for ($i = 0 ; $i < BIN5_PLAYERS_N ; $i++) {
// echo $p." i) ".$i."
";
$username = $ar[9+($i*2)];
- if (($item = $bdb->getitem_bylogin($username, &$id)) == FALSE) {
+ if (($item = $bdb->getitem_bylogin($username, $id)) == FALSE) {
echo "WARNING: the user [".$username."] NOT EXISTS!
";
continue;
}
@@ -337,7 +337,7 @@ SELECT g.* FROM %sbin5_tournaments AS t, %sbin5_matches AS m, %sbin5_games AS g
SELECT p.pts AS pts
FROM %sbin5_games AS g, %sbin5_points AS p
WHERE g.code = p.gcode AND g.mcode = %d AND p.ucode = %d
- ORDER BY g.code",
+ ORDER BY g.tstamp",
$G_dbpfx, $G_dbpfx,
$tmt_obj->code, $users[$u]['code']);