Vergleich newthread.php - 1.8.36 - 1.8.38

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 36Zeile 36
{
$thread = get_thread($mybb->input['tid']);


{
$thread = get_thread($mybb->input['tid']);


	$query = $db->simple_select("posts", "*", "tid='".$mybb->get_input('tid', MyBB::INPUT_INT)."' AND visible='-2'", array('order_by' => 'dateline, pid', 'limit' => 1));

	$query = $db->simple_select("posts", "*", "tid='".$mybb->input['tid']."' AND visible='-2'", array('order_by' => 'dateline, pid', 'limit' => 1));

	$post = $db->fetch_array($query);


	$post = $db->fetch_array($query);


	if(!$thread['tid'] || !$post['pid'] || $thread['visible'] != -2 || $thread['uid'] != $mybb->user['uid'])

	if(!$thread || !$post || $thread['visible'] != -2 || $thread['uid'] != $mybb->user['uid'])

	{
error($lang->invalidthread);
}

	{
error($lang->invalidthread);
}

Zeile 1032Zeile 1032
		$attachbox = '';
}


		$attachbox = '';
}


 
	$savedraftbutton = '';

	if($mybb->user['uid'])
{
eval("\$savedraftbutton = \"".$templates->get("post_savedraftbutton", 1, 0)."\";");

	if($mybb->user['uid'])
{
eval("\$savedraftbutton = \"".$templates->get("post_savedraftbutton", 1, 0)."\";");