瀏覽代碼

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

Signed-off-by: Peter Spicer <[email protected]>
Peter Spicer 10 年之前
父節點
當前提交
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.