! This doesn't play nice with MySQLi. Let's be safe out there.
@@ -1113,7 +1113,7 @@ function ssi_recentPoll($topPollInstead = false, $output_method = 'echo')
$smcFunc['db_free_result']($request);
// This user has voted on all the polls.
- if ($row === false)
+ if (empty($row) || !is_array($row))
return array();
// If this is a guest who's voted we'll through ourselves to show poll to show the results.