diff options
author | BlueRaja <BlueRaja.admin@gmail.com> | 2013-01-26 03:30:45 -0600 |
---|---|---|
committer | BlueRaja <BlueRaja.admin@gmail.com> | 2013-01-26 03:30:45 -0600 |
commit | d7b0c04459a6ec42a37255c38d67cea14fb60e61 (patch) | |
tree | 4269be8ec67fa3f4d12932041d3b37fa1f007daf /api | |
parent | 1e65273d68ffdec07f49c14e929499af21f7776a (diff) | |
download | pathery-d7b0c04459a6ec42a37255c38d67cea14fb60e61.tar.xz |
Moved usersData table to users table, added a few more columns to users (currently unused)
Diffstat (limited to 'api')
-rw-r--r-- | api/app.php | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/api/app.php b/api/app.php index 806e4ae..959d960 100644 --- a/api/app.php +++ b/api/app.php @@ -145,16 +145,14 @@ function getScoresB($mapID, $pageNumber = 1, $pageDivide = 10) { users.displayName as display,
solutions.moves as moves,
users.ID as ID,
- IfNull(userData.displayColor, '#cccccc') as displayColor,
- IfNull(userData.wallColor, '#666666') as wallColor,
- IfNull(userData.wallEmblem, 'blank.png') as wallEmblem,
+ users.displayColor,
+ users.wallColor,
+ users.wallEmblem,
solutions.dateModified as cdate
FROM
`users`
JOIN `solutions`
ON users.ID = solutions.userID
- LEFT JOIN `userData`
- ON users.ID = userData.userID
WHERE solutions.mapID = '$mapID'
ORDER BY solutions.moves DESC, solutions.dateModified ASC, solutions.ID DESC
";
|