different words in a button
[brisk.git] / web / briskin5 / index_wr.php
index 9f070f9..17d001d 100644 (file)
@@ -40,7 +40,14 @@ if ($table_idx < 0 || $table_idx >= TABLE_N)
      exit;
 
 $sem = Briskin5::lock_data($table_idx);
-$bri = &Briskin5::load_data($table_idx,$table_token);
+
+if (($bri = &Briskin5::load_data($table_idx,$table_token)) == FALSE) {
+  echo "Bin5 Load data error";
+  log_wr("Bin5 Load data error");
+  Briskin5::unlock_data($sem);
+  exit;
+}
+
 if (($user = &$bri->get_user($sess, &$idx)) == FALSE) {
   echo "Get User Error";
   log_wr("Get User Error");
@@ -96,7 +103,7 @@ else if ($user->stat == 'table') {
       if ($lockcalc < 3) {
        $user->comm[$user->step % COMM_N] = "gst.st = ".($user->step+1)."; ";
        $user->comm[$user->step % COMM_N] .= $table->exitlock_show(&$bri->user, $user->table_pos);
-       $user->comm[$user->step % COMM_N] .=  show_notify("<br>I dati presenti sul server non erano allineati con quelli inviati dal tuo browser, adesso lo sono. Riprova ora.", 2000, "Torna alla partita.", 400, 100);
+       $user->comm[$user->step % COMM_N] .=  show_notify("<br>I dati presenti sul server non erano allineati con quelli inviati dal tuo browser, adesso lo sono. Riprova ora.", 2000, "torna alla partita.", 400, 100);
        
        log_wr($user->comm[$user->step % COMM_N]);
        $user->step_inc();