Changeset 714 for trunk/Modules/User/User.php
- Timestamp:
- Jan 5, 2014, 4:47:51 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/User/User.php
r713 r714 42 42 { 43 43 $Output = T('Online translators').':<br />'; 44 $DbResult = $this->System->Database->query('SELECT `User`.`Name`, `User`.`ID` FROM `UserOnline` '. 44 $DbResult = $this->System->Database->query('SELECT * FROM ('. 45 'SELECT `User`.`Name`, `User`.`ID` FROM `UserOnline` '. 45 46 'JOIN `User` ON `User`.`ID` = `UserOnline`.`User` '. 46 'WHERE (`ActivityTime` >= NOW() - 300) '); 47 'WHERE (`ActivityTime` >= NOW() - 300) '. 48 'ORDER BY `ActivityTime` DESC ) AS `T` GROUP BY `Name`'); 47 49 while($DbUser = $DbResult->fetch_assoc()) 48 50 {
Note:
See TracChangeset
for help on using the changeset viewer.