consistency to add minute to apprentices tables
[brisk.git] / web / briskin5 / Obj / rules_old_rules.phh
index ffa1a1b..712e650 100644 (file)
@@ -173,7 +173,7 @@ class Rules_old_rules extends Rules {
 
             $game_delta = 1;
             // $table->game_next(1);
-            $table->game_init(&$bri->user);
+            $table->game_init($bri->user);
         }
         else if ($action == BIN5_RULES_ABANDON) { // return TRUE if all correct
             if (!($user->handpt <= 2)) {
@@ -192,7 +192,7 @@ class Rules_old_rules extends Rules {
             // Non si cambia mazzo se si abbandona la partita
             $game_delta = 0;
             // $table->game_next(0);
-            $table->game_init(&$bri->user);
+            $table->game_init($bri->user);
         }
         else if ($action == BIN5_RULES_CHECKCHOOSE) {
             return ($this->rules_checkchoose($bri, $curtime, $action, $user, $opt1, $opt2));
@@ -301,7 +301,7 @@ class Rules_old_rules extends Rules {
                                              $table->old_pnt, $table->old_asta_pnt, $table->old_tourn_pts);
 
 
-        if ($user->table_orig < TABLES_AUTH_N) {
+        if ($user->table_orig < TABLES_APPR_N) {
             require_once("../Obj/dbase_".$G_dbasetype.".phh");
 
             if (($bdb = BriskDB::create()) != FALSE) {
@@ -314,7 +314,7 @@ class Rules_old_rules extends Rules {
             log_points($user->ip, $curtime, $user, "STAT:BRISKIN5:FINISH_GAME", $plist);
         }
 
-        $table->game_init(&$bri->user);
+        $table->game_init($bri->user);
 
         return (TRUE);
     }