Permalink
Browse files

Fix shuffle

  • Loading branch information...
r04r committed Dec 15, 2015
1 parent c45cdde commit 11e3522cf6c856cb62c79f57390bd7431b2abf3a
Showing with 1 addition and 1 deletion.
  1. +1 −1 shuffle.php
@@ -2,7 +2,7 @@
require 'includes/header.php';
force_id();
update_activity('shuffle', 1);
$stmt = $link->db_exec('SELECT id FROM topics WHERE deleted = 0 AND locked = 0 AND ((UNIX_TIMESTAMP()-last_post)<%1) ORDER BY RAND() LIMIT 1', NECRO_BUMP_TIME);
$stmt = $link->db_exec('SELECT id FROM topics WHERE deleted = 0 AND stealth_ban = 0 AND locked = 0 AND ((UNIX_TIMESTAMP()-last_post)<%1) ORDER BY RAND() LIMIT 1', NECRO_BUMP_TIME);
list($shuffle_topic_id) = $link->fetch_row($stmt);
redirect('There you go — a semi-random topic!', 'topic/'.$shuffle_topic_id);
require 'includes/footer.php';

0 comments on commit 11e3522

Please sign in to comment.