Browse Source

! This doesn't play nice with MySQLi. Let's be safe out there.

Signed-off-by: Peter Spicer <[email protected]>
Peter Spicer 10 years ago
parent
commit
eb3788837f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      SSI.php

+ 1 - 1
SSI.php

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