Changeset 543 for trunk/img_level.php
- Timestamp:
- Jun 17, 2013, 11:19:05 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/img_level.php
r540 r543 116 116 if($Group['TablePrefix'] != '') 117 117 { 118 $Count = '(SELECT COUNT(*) FROM `'.$Group['TablePrefix'].'` WHERE (`Complete` = 1) AND (`Language` <> '.$Config['OriginalLanguage'].') AND (`User`='.$LineUser['ID'].'))'; 118 $Count = '(SELECT COUNT(*) FROM `'.$Group['TablePrefix'].'` WHERE (`Complete` = 1) AND (`Language` <> '. 119 $Config['OriginalLanguage'].') AND (`User`='.$LineUser['ID'].'))'; 119 120 $TranslatedCount .= 'COALESCE('.$Count.', 0) + '; 120 121 } … … 128 129 129 130 // Main code for translation teams 130 $DbResult = $System->Database->query('SELECT `ID`, `Name`, (SELECT AVG(`XP`) FROM `User` WHERE `Team` = `Team`.`Id`) AS `Average` FROM `Team` WHERE `ID` IN (SELECT `Team` FROM `User` WHERE `NeedUpdate` = 1)'); 131 $DbResult = $System->Database->query('SELECT `ID`, `Name`, (SELECT AVG(`XP`) FROM `User` WHERE `Team` = `Team`.`Id`) AS `Average` '. 132 'FROM `Team` WHERE `ID` IN (SELECT `Team` FROM `User` WHERE `NeedUpdate` = 1)'); 131 133 while($LineTeam = $DbResult->fetch_array()) 132 134 {
Note:
See TracChangeset
for help on using the changeset viewer.