...
authorAlexander Schmidt <alex@treefish.org>
Mon, 8 Oct 2012 12:02:15 +0000 (14:02 +0200)
committerAlexander Schmidt <alex@treefish.org>
Mon, 8 Oct 2012 12:02:15 +0000 (14:02 +0200)
include/session.inc

index 787d644..dc90943 100644 (file)
@@ -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']; }
       }
     }