X-Git-Url: http://git.treefish.org/banana.git/blobdiff_plain/64d981a433d9990d4c5ff9454464a520e169adfd..b22b28d88c9f6d951e1008e71843436b7df42b6a:/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']; } } }