From d8084dadad51cdde9325505badff30c3ad1388bc Mon Sep 17 00:00:00 2001 From: Hugues Hiegel Date: Sat, 29 Nov 2008 12:11:25 +0100 Subject: We were testing the wrong variable name for mysql update.. --- Badges.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)))); -- cgit v1.2.3