summaryrefslogtreecommitdiffstats
path: root/includes
diff options
context:
space:
mode:
authorBlueRaja <BlueRaja.admin@gmail.com>2013-01-24 20:52:29 -0600
committerBlueRaja <BlueRaja.admin@gmail.com>2013-01-24 20:52:29 -0600
commit8c531ad1777beadd6933605e7630ca2681001fb3 (patch)
treeffad2ff44bb70ac4d476516122b277f3949f27c6 /includes
parent4ef5930b62bc0d20657278f2e6e227905d70bc44 (diff)
downloadpathery-8c531ad1777beadd6933605e7630ca2681001fb3.tar.xz
Challenges are now displayed in the correct order again. Ay' carumba.
Diffstat (limited to 'includes')
-rw-r--r--includes/datas.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/includes/datas.php b/includes/datas.php
index 41456a1..62f664e 100644
--- a/includes/datas.php
+++ b/includes/datas.php
@@ -1076,7 +1076,8 @@ function loadChallengeListing($userIdUnsanitized)
$userID = mysql_escape_string($userIdUnsanitized);
$sql = " SELECT maps.ID AS mapID, maps.challengeTier, maps.name AS name,
- challengeSolutions.dateSolved, challengeSolutions.challengeID AS challengeID
+ challengeSolutions.dateSolved, challengeSolutions.challengeID AS challengeID,
+ maps.challengeSuborder, challenges.ordering
FROM challenges
LEFT JOIN maps ON challenges.mapID = maps.ID
LEFT JOIN challengeSolutions ON challenges.ID = challengeSolutions.challengeID AND challengeSolutions.userID = '$userID'