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