Vergleich ratethread.php - 1.8.15 - 1.8.37

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 33Zeile 33
if(($thread['visible'] != 1 && $ismod == false) || ($thread['visible'] > 1 && $ismod == true))
{
error($lang->error_invalidthread);

if(($thread['visible'] != 1 && $ismod == false) || ($thread['visible'] > 1 && $ismod == true))
{
error($lang->error_invalidthread);

 
}

if($thread['visible'] == -1)
{
error($lang->thread_doesnt_exist);

}

if($thread['uid'] == $mybb->user['uid'])

}

if($thread['uid'] == $mybb->user['uid'])

Zeile 88Zeile 93
$query = $db->simple_select("threadratings", "*", "{$whereclause} AND tid='{$tid}'");
$ratecheck = $db->fetch_array($query);


$query = $db->simple_select("threadratings", "*", "{$whereclause} AND tid='{$tid}'");
$ratecheck = $db->fetch_array($query);


if($ratecheck['rid'] || isset($mybb->cookies['mybbratethread'][$tid]))

if($ratecheck || isset($mybb->cookies['mybbratethread'][$tid]))

{
error($lang->error_alreadyratedthread);
}

{
error($lang->error_alreadyratedthread);
}