Posted by colan on December 4, 2007 at 7:18pm
Jump to:
| Project: | Smackdown |
| Version: | 5.x-2.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | critical |
| Assigned: | colan |
| Status: | closed (fixed) |
Issue Summary
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!
| Attachment | Size |
|---|---|
| smackdown.patch | 476 bytes |
Comments
#1
#2
Tested. Thanks!
#3
Automatically closed -- issue fixed for two weeks with no activity.