]> mop.ddnsfree.com - git repositories - brisk.git/commitdiff
Briskin5::load_data checked
authorMatteo Nastasi (mop) <nastasi@alternativeoutput.it>
Sun, 16 Mar 2008 08:40:21 +0000 (08:40 +0000)
committerMatteo Nastasi (mop) <nastasi@alternativeoutput.it>
Sun, 16 Mar 2008 08:40:21 +0000 (08:40 +0000)
web/Obj/brisk.phh
web/briskin5/index_rd.php

index caf5111727eb390e77907ac9fb6e038d36829d13..c6294b98df70aac5c9f04b75d0bfcd6243d0f7d2 100644 (file)
@@ -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)));
index 43e2a0d5c40351bbb316e608be502f25592c3dc9..90679de39f48d4a8bc6976f9875d316c26134e61 100644 (file)
@@ -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);