X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2Fbriskin5%2Findex_rd.php;h=1800f2115568bd403d18ef6793ed04866e4ab525;hb=8e74a78fab641d685d534a821f114eda7c2cdd78;hp=115f9b55d1509d458d3028172b227df1520f01ca;hpb=71e0c1009a61b104d4c52527dcf4290c8bafcdd7;p=brisk.git diff --git a/web/briskin5/index_rd.php b/web/briskin5/index_rd.php index 115f9b5..1800f21 100644 --- a/web/briskin5/index_rd.php +++ b/web/briskin5/index_rd.php @@ -98,7 +98,7 @@ function maincheck($sess, $cur_stat, $cur_subst, $cur_step, &$new_stat, &$new_su $S_load_stat['U_first_loop']++; if (($user = Bin5_user::load_data($table_idx, $proxy_step['i'], $sess)) == FALSE) { - Bin5::unlock_data(); + Bin5::unlock_data($sem); ignore_user_abort(FALSE); return (unrecerror()); } @@ -175,7 +175,11 @@ function maincheck($sess, $cur_stat, $cur_subst, $cur_step, &$new_stat, &$new_su */ ignore_user_abort(TRUE); $sem = Bin5::lock_data($table_idx); - $bri = Bin5::load_data($table_idx, $table_token); + if (($bri = Bin5::load_data($table_idx, $table_token)) == FALSE) { + Bin5::unlock_data($sem); + ignore_user_abort(FALSE); + return (unrecerror()); + } $S_load_stat['R_minusone']++; /* unset the $user var to reload it from main structure */ @@ -270,7 +274,11 @@ function maincheck($sess, $cur_stat, $cur_subst, $cur_step, &$new_stat, &$new_su log_auth($user->sess, "Explicit logout."); $S_load_stat['R_the_end']++; - $bri = Bin5::load_data($table_idx, $table_token); + if (($bri = Bin5::load_data($table_idx, $table_token)) == FALSE) { + Bin5::unlock_data($sem); + ignore_user_abort(FALSE); + return (unrecerror()); + } unset($user); if (($user = $bri->get_user($sess, $idx)) == FALSE) { Bin5::unlock_data($sem);