summaryrefslogtreecommitdiff
path: root/BigLine.php
diff options
context:
space:
mode:
authorHugues Hiegel <hugues@hiegel.fr>2011-07-06 15:29:31 +0200
committerHugues Hiegel <hugues@hiegel.fr>2011-07-06 15:29:31 +0200
commitbd6ff6cf31048bc794e22a8d84bed08bcf93c188 (patch)
treee48a3ec90ea51ee0187c36eaea0c448fdb8b1a9e /BigLine.php
parentd8db7489e628e8bd4a232f185e3599f40626cced (diff)
Rewrites URL to get canonical names, with leading .png for pictures -w/ backward compability-
Diffstat (limited to 'BigLine.php')
-rw-r--r--BigLine.php4
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';",