Changeset 745 for trunk/wifidog-auth/wifidog/classes/Authenticator.php
- Timestamp:
- 09/11/05 01:46:15 (8 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/wifidog-auth/wifidog/classes/Authenticator.php
r733 r745 1 1 <?php 2 3 2 /********************************************************************\ 4 3 * This program is free software; you can redistribute it and/or * … … 73 72 //Try to destroy all connections tied to the current node 74 73 $sql = "SELECT conn_id FROM connections WHERE user_id = '{$user->getId()}' AND node_id='{$node->getId()}' AND token_status='".TOKEN_INUSE."';\n"; 75 $conn_rows = null;74 $conn_rows = null; 76 75 $db->ExecSql($sql, $conn_rows, false); 77 if($conn_rows) 78 { 79 foreach ($conn_rows as $conn_row) 76 if ($conn_rows) 80 77 { 81 $this->acctStop($conn_row['conn_id']); 78 foreach ($conn_rows as $conn_row) 79 { 80 $this->acctStop($conn_row['conn_id']); 81 } 82 82 } 83 }84 83 } 85 84 } … … 92 91 $conn_rows = null; 93 92 $db->ExecSql($sql, $conn_rows, false); 94 if ($conn_rows)93 if ($conn_rows) 95 94 { 96 95 foreach ($conn_rows as $conn_row) 97 {98 $this->acctStop($conn_row['conn_id']);99 }96 { 97 $this->acctStop($conn_row['conn_id']); 98 } 100 99 } 101 100 } … … 129 128 $conn_rows = array (); 130 129 $db->ExecSql($sql, $conn_rows, true); 131 if (isset($conn_rows)) { 132 foreach ($conn_rows as $conn_row) 133 { 134 $this->acctStop($conn_row['conn_id']); 135 } 136 } 130 if (isset ($conn_rows)) 131 { 132 foreach ($conn_rows as $conn_row) 133 { 134 $this->acctStop($conn_row['conn_id']); 135 } 136 } 137 137 } 138 138
