Permalink
Browse files

only include active outfits in the top 30

  • Loading branch information...
1 parent 007d38b commit 1f5daa003d553668ff71b23fefaeb03bb0e1a548 @iamcal iamcal committed Jul 22, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 top.php
View
@@ -13,7 +13,7 @@
$num = 1;
- $ret = db_fetch("SELECT * FROM glitchmash_avatars WHERE enough_votes=1 ORDER BY ratio DESC LIMIT 30");
+ $ret = db_fetch("SELECT * FROM glitchmash_avatars WHERE is_active=1 AND enough_votes=1 ORDER BY ratio DESC LIMIT 30");
foreach ($ret['rows'] as $row){
$tsid_enc = AddSlashes($row['player_tsid']);

0 comments on commit 1f5daa0

Please sign in to comment.