summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugues Hiegel <hugues@hiegel.fr>2008-11-29 12:11:25 +0100
committerHugues Hiegel <hugues@hiegel.fr>2008-11-29 12:11:25 +0100
commitd8084dadad51cdde9325505badff30c3ad1388bc (patch)
tree72281df49b69d2e9b943256572736fd3b26866ac
parent354f4761316e2f62600fedf51149e41bde6557d9 (diff)
We were testing the wrong variable name for mysql update..
-rw-r--r--Badges.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/Badges.php b/Badges.php
index 0e21357..3aaa03e 100644
--- a/Badges.php
+++ b/Badges.php
@@ -294,7 +294,7 @@ function make_db_cache($username){
}
}
- if ($playcount != 0)
+ if ($data['playcount'] != 0)
{
$QUERY=(sprintf("REPLACE INTO users (statsstart,playcount,lastupdate,username) VALUES ('%s',%s,'%s','%s');",
time(), $data['playcount'], gpc_addslashes($data['statsstart']), gpc_addslashes(strtolower($username))));