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.

CommentFileSizeAuthor
no_smackdowns.patch509 bytescolan

Comments

sirkitree’s picture

Status: Needs review » Fixed

I 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.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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