X-Git-Url: http://git.treefish.org/banana.git/blobdiff_plain/64d981a433d9990d4c5ff9454464a520e169adfd..a4f105d41d06053ff3a7b52572bd818b1a027149:/include/session.inc diff --git a/include/session.inc b/include/session.inc index 787d644..288c798 100644 --- a/include/session.inc +++ b/include/session.inc @@ -25,7 +25,8 @@ $SESSIONS_totex = 0; if(isset($SESSIONS)) { foreach ($SESSIONS as $session) { - if($session['id'] < $SESSIONS_next) { $SESSIONS_totex += $session['nexamples']; } + if($session['id'] < $SESSIONS_next || (! isset($SESSIONS_next)) ) { $SESSIONS_totex += $session['nexamples']; } + if( $session['id'] != $SESSIONS_actual ) { $SESSIONS_last = $session['id']; } } }