Changeset 25545 for trunk/include/ws_functions/pwg.users.php
- Timestamp:
- Nov 18, 2013, 6:03:00 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/ws_functions/pwg.users.php
r25474 r25545 168 168 ;'; 169 169 170 $users = hash_from_query($query, 'id'); 170 $users = array(); 171 $result = pwg_query($query); 172 while ($row = pwg_db_fetch_assoc($result)) 173 { 174 $row['id'] = intval($row['id']); 175 $users[ $row['id'] ] = $row; 176 } 171 177 172 178 if (count($users) > 0) … … 183 189 while ($row = pwg_db_fetch_assoc($result)) 184 190 { 185 $users[ $row['user_id'] ]['groups'][] = $row['group_id'];191 $users[ $row['user_id'] ]['groups'][] = intval($row['group_id']); 186 192 } 187 193 }
Note: See TracChangeset
for help on using the changeset viewer.