Zeile 691 | Zeile 691 |
---|
$votes[$i] = "0"; } $voteslist .= $votes[$i];
|
$votes[$i] = "0"; } $voteslist .= $votes[$i];
|
$numvotes = $numvotes + $votes[$i];
| $numvotes = (int)$numvotes + (int)$votes[$i];
|
} }
| } }
|
Zeile 751 | Zeile 751 |
---|
$tid = $poll['tid']; $thread = get_thread($tid);
|
$tid = $poll['tid']; $thread = get_thread($tid);
|
if(!$thread)
| if(!$thread || ($thread['visible'] != 1 && ($thread['visible'] == 0 && !is_moderator($thread['fid'], "canviewunapprove")) || ($thread['visible'] == -1 && !is_moderator($thread['fid'], "canviewdeleted"))))
|
{ error($lang->error_invalidthread); }
| { error($lang->error_invalidthread); }
|
Zeile 899 | Zeile 899 |
---|
eval("\$showresults = \"".$templates->get("polls_showresults")."\";"); output_page($showresults); }
|
eval("\$showresults = \"".$templates->get("polls_showresults")."\";"); output_page($showresults); }
|
|
|
if($mybb->input['action'] == "vote" && $mybb->request_method == "post") { // Verify incoming POST request
| if($mybb->input['action'] == "vote" && $mybb->request_method == "post") { // Verify incoming POST request
|
Zeile 919 | Zeile 920 |
---|
$query = $db->simple_select("threads", "*", "poll='".(int)$poll['pid']."'"); $thread = $db->fetch_array($query);
|
$query = $db->simple_select("threads", "*", "poll='".(int)$poll['pid']."'"); $thread = $db->fetch_array($query);
|
if(!$thread || $thread['visible'] == 0)
| if(!$thread || ($thread['visible'] != 1 && ($thread['visible'] == 0 && !is_moderator($thread['fid'], "canviewunapprove")) || ($thread['visible'] == -1 && !is_moderator($thread['fid'], "canviewdeleted"))))
|
{ error($lang->error_invalidthread); }
| { error($lang->error_invalidthread); }
|
Zeile 1091 | Zeile 1092 |
---|
// We do not have $forum_cache available here since no forums permissions are checked in undo vote // Get thread ID and then get forum info $thread = get_thread($poll['tid']);
|
// We do not have $forum_cache available here since no forums permissions are checked in undo vote // Get thread ID and then get forum info $thread = get_thread($poll['tid']);
|
if(!$thread || $thread['visible'] == 0)
| if(!$thread || ($thread['visible'] != 1 && ($thread['visible'] == 0 && !is_moderator($thread['fid'], "canviewunapprove")) || ($thread['visible'] == -1 && !is_moderator($thread['fid'], "canviewdeleted"))))
|
{ error($lang->error_invalidthread); }
| { error($lang->error_invalidthread); }
|