points report fixed in stat-day.php and version updated
[brisk.git] / web / briskin5 / stat-day.php
index 72408e4..0cd4aad 100644 (file)
@@ -317,7 +317,7 @@ function main_pgsql($from, $to)
                     fprintf($fpexp, "<th>%s</th>", $users[$u]['login']);
                     // note: we are looping on users, order on them not needed
                     $pts_sql = sprintf("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",
-                                       $G_dbpfx, $G_dbpfx, $G_dbpfx,
+                                       $G_dbpfx, $G_dbpfx,
                                        $tmt_obj->code, $users[$u]['code']);
 
                     // points of the match for each user