From 8fcf37789bd93a48c1d05f67c52035bce5490686 Mon Sep 17 00:00:00 2001 From: "Matteo Nastasi (mop)" Date: Sun, 16 Mar 2008 08:40:21 +0000 Subject: [PATCH] Briskin5::load_data checked --- web/Obj/brisk.phh | 2 +- web/briskin5/index_rd.php | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/web/Obj/brisk.phh b/web/Obj/brisk.phh index caf5111..c6294b9 100644 --- a/web/Obj/brisk.phh +++ b/web/Obj/brisk.phh @@ -22,7 +22,7 @@ define(FTOK_PATH, "/var/lib/brisk"); define(LEGAL_PATH, "/tmp/legal_brisk"); define(PROXY_PATH, "/var/lib/brisk_proxy"); -define(TABLES_N, 12); +define(TABLES_N, 20); define(PLAYERS_N, 3); define(MAX_POINTS, 5); define(MAX_PLAYERS, (20 + (PLAYERS_N * TABLES_N))); diff --git a/web/briskin5/index_rd.php b/web/briskin5/index_rd.php index 43e2a0d..90679de 100644 --- a/web/briskin5/index_rd.php +++ b/web/briskin5/index_rd.php @@ -204,7 +204,11 @@ function maincheck($sess, $cur_stat, $cur_subst, $cur_step, &$new_stat, &$new_su else { ignore_user_abort(TRUE); $sem = Briskin5::lock_data($table_idx); - $bri = &Briskin5::load_data($table_idx, $table_token); + if (($bri = &Briskin5::load_data($table_idx, $table_token)) == FALSE) { + Briskin5::unlock_data($sem); + ignore_user_abort(FALSE); + return (unrecerror()); + } if (($user = &$bri->get_user($sess, $idx)) == FALSE) { Briskin5::unlock_data($sem); ignore_user_abort(FALSE); -- 2.17.1