summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--includes/datas.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/datas.php b/includes/datas.php
index 83399c7..d79e3ae 100644
--- a/includes/datas.php
+++ b/includes/datas.php
@@ -553,7 +553,7 @@ function getAchievementCurrency($userID, $aType) {
IN ( 1, 2, 3, 4 )
AND solutions.userID = '$userID'
GROUP BY solutions.userID, mapOfTheDay.mapDate
- HAVING COUNT( isTiedForHighScore ) = 4";
+ HAVING SUM( isTiedForHighScore ) = 4";
$result = mysql_query($sql) OR die("SQL query failed; $sql");
return mysql_num_rows($result);
break;