]> git.treefish.org Git - banana.git/blobdiff - include/session.inc
...
[banana.git] / include / session.inc
index 787d6445487c4e072b2c1f9a937ac7c45ab4eab1..288c7984ecd3cbb0e4208e356f342dd292bc88ef 100644 (file)
@@ -25,7 +25,8 @@
     $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']; }
+       if( $session['id'] != $SESSIONS_actual ) { $SESSIONS_last = $session['id']; }
       }
     }