X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=web%2Fbriskin5%2Findex_rd.php;h=1800f2115568bd403d18ef6793ed04866e4ab525;hb=8e74a78fab641d685d534a821f114eda7c2cdd78;hp=22903a27d19342abfc452701148e7d95203889ee;hpb=4a8c25612482bb427a327e0f69fc3603a37d709a;p=brisk.git diff --git a/web/briskin5/index_rd.php b/web/briskin5/index_rd.php index 22903a2..1800f21 100644 --- a/web/briskin5/index_rd.php +++ b/web/briskin5/index_rd.php @@ -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);