query(" SELECT UserID FROM torrents_recommended WHERE GroupID = '$GroupID'"); list($UserID) = $DB->next_record(); if ($UserID != $LoggedUser['ID']) { error(403); } } $DB->query(" DELETE FROM torrents_recommended WHERE GroupID = '$GroupID'"); $Cache->delete_value('recommend'); header('Location: '.$_SERVER['HTTP_REFERER']); ?>