Vergleich polls.php - 1.8.36 - 1.8.37

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 980Zeile 980
	$query = $db->simple_select("pollvotes", "*", "{$user_check} AND pid='".$poll['pid']."'");
$votecheck = $db->fetch_array($query);


	$query = $db->simple_select("pollvotes", "*", "{$user_check} AND pid='".$poll['pid']."'");
$votecheck = $db->fetch_array($query);


	if(!empty($votecheck['vid']))

	if($votecheck)

	{
error($lang->error_alreadyvoted);
}

	{
error($lang->error_alreadyvoted);
}

Zeile 1087Zeile 1087
	$query = $db->simple_select("polls", "*", "pid='".$mybb->get_input('pid', MyBB::INPUT_INT)."'");
$poll = $db->fetch_array($query);


	$query = $db->simple_select("polls", "*", "pid='".$mybb->get_input('pid', MyBB::INPUT_INT)."'");
$poll = $db->fetch_array($query);


	if(!$poll['pid'])

	if(!$poll)

	{
error($lang->error_invalidpoll);
}

	{
error($lang->error_invalidpoll);
}