]> git.treefish.org Git - banana.git/blobdiff - include/session.inc
...
[banana.git] / 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']; }
       }
     }