From: Matteo Nastasi (mop) Date: Wed, 30 Mar 2011 16:51:00 +0000 (+0200) Subject: Add a check for coerency between cached and user step value. X-Git-Tag: 3.5.1~2 X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=commitdiff_plain;h=4bc2315c5b35234428050da6774d8ed6da9daa86;p=brisk.git Add a check for coerency between cached and user step value. --- diff --git a/web/briskin5/Obj/briskin5.phh b/web/briskin5/Obj/briskin5.phh index 3ca912b..eef465f 100644 --- a/web/briskin5/Obj/briskin5.phh +++ b/web/briskin5/Obj/briskin5.phh @@ -609,6 +609,19 @@ class Bin5_user extends User { log_only(serialize($user)); } } + else { + if ($sess != FALSE) { + // This part isn't strictly required but is good to verify + // the coerence of cached and User class saved value of step field. + $old_step = $user->step; + $arr = Bin5_user::load_step($sess); + $user->step = $arr['s']; + if ($old_step != $user->step) { + log_crit("Bin5:: steps are diffetents User->step ".$user->step." Old_step: ".$old_step); + } + + } + } $user->shm_sz = $shm_sz;