diff options
-rw-r--r-- | Badges_v2.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Badges_v2.php b/Badges_v2.php index 425b4d5..9cc935d 100644 --- a/Badges_v2.php +++ b/Badges_v2.php @@ -42,6 +42,8 @@ if ( ! is_file($Stats) { system("wget -q --no-cache http://ws.audioscrobbler.com/1.0/user/".rawurlencode($username)."/profile.xml -O $Stats.tmp"); system("mv $Stats.tmp $Stats"); + if (!filesize($Stats)) + system("rm $Stats"); } if ( is_file($Cache) |