From bd6ff6cf31048bc794e22a8d84bed08bcf93c188 Mon Sep 17 00:00:00 2001 From: Hugues Hiegel Date: Wed, 6 Jul 2011 15:29:31 +0200 Subject: Rewrites URL to get canonical names, with leading .png for pictures -w/ backward compability- --- BigLine.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'BigLine.php') diff --git a/BigLine.php b/BigLine.php index 2f689d5..9f5832d 100644 --- a/BigLine.php +++ b/BigLine.php @@ -322,8 +322,8 @@ function touch_badge($username, $type, $style, $color) $res = mysql_query("SELECT hits FROM badges WHERE username='" . gpc_addslashes(strtolower($username)) . "' AND type='$type' AND style='$style' AND color='$color';"); $data = mysql_fetch_assoc($res); - if(mysql_num_rows($res)) - $hits = $data["hits"]; + //if(mysql_num_rows($res)) + $hits = @$data["hits"]; $hits++; $QUERY=sprintf("UPDATE badges SET hits=%s, lasthit='%s' WHERE username='%s' AND type='$type' AND style='$style' AND color='$color';", -- cgit v1.2.3