Vergleich polls.php - 1.02 - 1.15

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 693Zeile 693
		error($lang->error_nopolloptions);
}
// Check if the user has voted before...

		error($lang->error_nopolloptions);
}
// Check if the user has voted before...

	$query = $db->query("SELECT * FROM ".TABLE_PREFIX."pollvotes WHERE uid='".$mybb->user['uid']."' AND pid='".$poll['pid']."'");
$votecheck = $db->fetch_array($query);
if($votecheck['vid'] || $pollvotes[$poll['pid']])
{




    if($mybb->user['uid'])
{
$query = $db->query("SELECT * FROM ".TABLE_PREFIX."pollvotes WHERE uid='".$mybb->user['uid']."' AND pid='".$poll['pid']."'");
$votecheck = $db->fetch_array($query);
}
if($votecheck['vid'] || $_COOKIE['pollvotes'][$poll['pid']])
{

		error($lang->error_alreadyvoted);
}
else

		error($lang->error_alreadyvoted);
}
else