Просмотр исходного кода

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

Signed-off-by: Peter Spicer <[email protected]>
Peter Spicer 10 лет назад
Родитель
Сommit
eb3788837f
1 измененных файлов с 1 добавлено и 1 удалено
  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.