Voting pages don't show up with the current logic, given that the output of array_rand() is used improperly. See http://ca.php.net/manual/en/function.array-rand.php for details.

If you are picking only one entry, array_rand() returns the key for a random entry.

Here's a patch. Please test!

CommentFileSizeAuthor
smackdown.patch476 bytescolan

Comments

colan’s picture

Title: Improper use of array_rand() » New smackdown form shows up instead of voting page
sirkitree’s picture

Status: Needs review » Fixed

Tested. Thanks!

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.