X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2Fbriskin5%2Fstat-day.php;h=72408e43c32a63a1724e6d4915198a9bfeeb74fc;hb=536da22ebde5fa66e0f7524e9efc0316391f1afd;hp=be148cfd1e49f68b935eb78afb1f17bfa44b7e23;hpb=f9a43770d979532e374b6f724e6303eb16b9afa0;p=brisk.git diff --git a/web/briskin5/stat-day.php b/web/briskin5/stat-day.php index be148cf..72408e4 100644 --- a/web/briskin5/stat-day.php +++ b/web/briskin5/stat-day.php @@ -305,10 +305,11 @@ function main_pgsql($from, $to) $gam_sql = sprintf("SELECT g.* FROM %sbin5_tournaments as t, %sbin5_matches AS m, %sbin5_games AS g WHERE t.code = m.tcode AND m.code = g.mcode AND m.code = %d ORDER BY g.tstamp;", $G_dbpfx, $G_dbpfx, $G_dbpfx, $tmt_obj->code); if (($gam_pg = pg_query($bdb->dbconn->db(), $gam_sql)) == FALSE ) { + log_crit("stat-day: gam_sql failed"); break; } - for ($u = 0 ; $u < $usr_n ; $u++) { + for ($u = 0 ; $u < count($users) ; $u++) { if ($u == 0) { fprintf($fpexp, "