Vergleich newthread.php - 1.8.36 - 1.8.37
Zeile 36 | Zeile 36 |
---|---|
{ |
{ |
$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']) |
{ | { |