From: Alexander Schmidt Date: Mon, 8 Oct 2012 12:02:15 +0000 (+0200) Subject: ... X-Git-Url: https://git.treefish.org/banana.git/commitdiff_plain/719a15658a3577b6682bd8d2f96b66b6d6539bbc?hp=d38ececa64cec676367c348bc795cd1158dd723b ... --- 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']; } } }