X-Git-Url: http://git.treefish.org/banana.git/blobdiff_plain/64d981a433d9990d4c5ff9454464a520e169adfd..7b7f10ba3917a6d5229f13d27aa4e94a9685b00e:/include/session.inc?ds=inline diff --git a/include/session.inc b/include/session.inc index 787d644..dc90943 100644 --- a/include/session.inc +++ b/include/session.inc @@ -25,7 +25,7 @@ $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']; } } }