mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-15 05:00:49 +08:00
fix compatibility with php72
This commit is contained in:
@@ -300,12 +300,12 @@ if ($CURUSER && $showpolls_main == "yes")
|
||||
$os = array();
|
||||
|
||||
// Count votes
|
||||
while (($arr2 = mysql_fetch_row($res) !== null) && isset($vs[$arr2[0]]))
|
||||
while (($arr2 = mysql_fetch_row($res) !== null) && isset($arr2[0]) && isset($vs[$arr2[0]]))
|
||||
$vs[$arr2[0]] ++;
|
||||
|
||||
reset($o);
|
||||
for ($i = 0; $i < count($o); ++$i){
|
||||
if ($o[$i])
|
||||
if (isset($vs[$i]) && isset($o[$i]) && $o[$i])
|
||||
$os[$i] = array($vs[$i], $o[$i], $i);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user