I get the following error when there aren't any smackdowns:
warning: array_rand() [function.array-rand]: First argument has to be an array in /var/www/www.example.com/sites/all/modules/smackdown/smackdown.module on line 710.
This patch should fix it.
| Comment | File | Size | Author |
|---|---|---|---|
| no_smackdowns.patch | 509 bytes | colan |
Comments
Comment #1
sirkitree commentedI didn't really want to use count as a boolean here so I refined the smackdown_get_smackdowns function instead and then replaced your cout($nids) with just checking for the existence of $nids.
Same effect, different approach. Thanks for pointing out this error.
Comment #2
(not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.