Browse Source

Small change in implementation. #181

Rafał Pitoń 12 years ago
parent
commit
966a8547f6
1 changed files with 2 additions and 2 deletions
  1. 2 2
      misago/onlines.py

+ 2 - 2
misago/onlines.py

@@ -55,9 +55,9 @@ class MembersOnline(object):
                }
                }
 
 
         if not request.user.is_crawler():
         if not request.user.is_crawler():
-            if not stat['members'] and request.user.is_authenticated():
+            if request.user.is_authenticated() and request.session.started:
                 stat['members'] += 1
                 stat['members'] += 1
                 stat['all'] += 1
                 stat['all'] += 1
             if not stat['all']:
             if not stat['all']:
-                stat['all'] += 1        
+                stat['all'] += 1
         return stat
         return stat