diff options
Diffstat (limited to 'BigLine.php')
-rw-r--r-- | BigLine.php | 4 |
1 files changed, 2 insertions, 2 deletions
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';", |