]> git.treefish.org Git - banana.git/commitdiff
...
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 787d6445487c4e072b2c1f9a937ac7c45ab4eab1..dc90943d66b9418f6777a1c3df82a498274282b9 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']; }
       }
     }