From 225d405fc65a983470f3d690ea7ea0ca6a3d7779 Mon Sep 17 00:00:00 2001 From: "Matteo Nastasi (mop)" Date: Wed, 21 Nov 2012 10:28:52 +0100 Subject: [PATCH] more consistent assignement during failure branches --- web/Obj/brisk.phh | 2 ++ web/briskin5/Obj/briskin5.phh | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/web/Obj/brisk.phh b/web/Obj/brisk.phh index b53cefb..733b5fa 100644 --- a/web/Obj/brisk.phh +++ b/web/Obj/brisk.phh @@ -1717,6 +1717,7 @@ class Room { $ghost_user = $this->user[$ghost]; $curtime = time(); + $ghost_user->comm[$ghost_user->step % COMM_N] = ""; $ghost_user->step_inc(); if ($sess == "") { $sess = uniqid(""); @@ -1734,6 +1735,7 @@ class Room { $bri = $this->match[$table_idx]; if ($bri->the_end != TRUE) { + $bri->user[$ghost_user->table_pos]->comm[$bri->user[$ghost_user->table_pos]->step % COMM_N] = ""; $bri->user[$ghost_user->table_pos]->step_inc(); $bri->user[$ghost_user->table_pos]->sess = $sess; } diff --git a/web/briskin5/Obj/briskin5.phh b/web/briskin5/Obj/briskin5.phh index b29a580..356c579 100644 --- a/web/briskin5/Obj/briskin5.phh +++ b/web/briskin5/Obj/briskin5.phh @@ -1181,6 +1181,12 @@ class Bin5 { $content = ob_get_contents(); ob_end_clean(); } + else { + $content = "Bin5 Load data error"; + } + } + else { + $content = "Bin5 Load data error"; } $s_a_p->pgflush_try_add($enc, $new_socket, 20, $header_out, $content); return TRUE; -- 2.17.1