From 719a15658a3577b6682bd8d2f96b66b6d6539bbc Mon Sep 17 00:00:00 2001 From: Alexander Schmidt Date: Mon, 8 Oct 2012 14:02:15 +0200 Subject: [PATCH] ... --- include/session.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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']; } } } -- 2.39.2