summaryrefslogtreecommitdiffstats
path: root/includes/datas.php
diff options
context:
space:
mode:
authorPatrick Davison <snapwilliam@gmail.com>2013-03-07 21:42:40 -0800
committerPatrick Davison <snapwilliam@gmail.com>2013-03-07 21:42:40 -0800
commitd38022db1a3ad57526d44e47ee4b40215f5e7c7b (patch)
tree9f01d4d0f05c44efa7a418d478c318ef61423118 /includes/datas.php
parentaf0ee456d75304494e3eecfb8a9bd2b232e44fe6 (diff)
parent827c767fc3025877ad0d1d23e0f15bc35d24b14a (diff)
downloadpathery-d38022db1a3ad57526d44e47ee4b40215f5e7c7b.tar.xz
Merge branch 'HEAD' of ssh://git@git.raylu.net/pathery
Diffstat (limited to 'includes/datas.php')
-rw-r--r--includes/datas.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/includes/datas.php b/includes/datas.php
index 92cf5eb..f0d9067 100644
--- a/includes/datas.php
+++ b/includes/datas.php
@@ -809,6 +809,7 @@ function getScores($mapID, $pageNumber = 1, $pageDivide = 10) {
timediff(solutions.dateModified, TIMESTAMP(CURDATE())) as diff,
users.displayName as display,
solutions.moves as moves,
+ solutions.championPointsWorth as points,
users.ID as ID,
users.displayColor,
users.wallColor,
@@ -874,7 +875,8 @@ function getScores($mapID, $pageNumber = 1, $pageDivide = 10) {
$medal = 'gold';
// if is blind map.
- if ($isBlindMap AND $myBestMoves < $moves) $row['moves'] = '???';
+ if ($isBlindMap AND $myBestMoves < $moves)
+ $row['moves'] = '???';
$output['users'][$i] = $row;
$output['users'][$i]['secondsSinceScored'] = $secondsSinceScored;