From: Matteo Nastasi (mop) Date: Wed, 21 Nov 2012 09:28:52 +0000 (+0100) Subject: more consistent assignement during failure branches X-Git-Tag: v4.1.1~1 X-Git-Url: http://mop.ddnsfree.com/gitweb/?p=brisk.git;a=commitdiff_plain;h=225d405fc65a983470f3d690ea7ea0ca6a3d7779 more consistent assignement during failure branches --- 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;