Show
Ignore:
Timestamp:
03/03/10 19:27:35 (2 years ago)
Author:
gbastien
Message:

* Modifs on the token architecture: some corrections to connection and token deletions and garbage collection because token are now reusable

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/newtoken/wifidog/classes/Node.php

    r1446 r1455  
    16661666 
    16671667    private function getOnlineUsersSql() { 
    1668         return "SELECT users.user_id FROM users,connections JOIN tokens USING (token_id) WHERE tokens.token_status='".TOKEN_INUSE."' AND users.user_id=connections.user_id AND connections.node_id='{$this->id}'"; 
     1668        return "SELECT DISTINCT users.user_id FROM users,connections JOIN tokens USING (token_id) WHERE tokens.token_status='".TOKEN_INUSE."' AND users.user_id=connections.user_id AND connections.node_id='{$this->id}'"; 
     1669         
    16691670    } 
    16701671    /**