"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "Upload/polls.php" between
mybb_1821.zip and mybb_1822.zip

About: MyBB is a multilingual, standards-compliant and free forum (discussion board) software.

polls.php  (mybb_1821):polls.php  (mybb_1822)
skipping to change at line 920 skipping to change at line 920
if(!$poll) if(!$poll)
{ {
error($lang->error_invalidpoll); error($lang->error_invalidpoll);
} }
$plugins->run_hooks("polls_vote_start"); $plugins->run_hooks("polls_vote_start");
$poll['timeout'] = $poll['timeout']*60*60*24; $poll['timeout'] = $poll['timeout']*60*60*24;
$query = $db->simple_select("threads", "*", "poll='".(int)$poll['pid']."' $thread = get_thread($poll['tid']);
");
$thread = $db->fetch_array($query);
if(!$thread || ($thread['visible'] != 1 && ($thread['visible'] == 0 && !i s_moderator($thread['fid'], "canviewunapprove")) || ($thread['visible'] == -1 && !is_moderator($thread['fid'], "canviewdeleted")))) if(!$thread || ($thread['visible'] != 1 && ($thread['visible'] == 0 && !i s_moderator($thread['fid'], "canviewunapprove")) || ($thread['visible'] == -1 && !is_moderator($thread['fid'], "canviewdeleted"))))
{ {
error($lang->error_invalidthread); error($lang->error_invalidthread);
} }
$fid = $thread['fid']; $fid = $thread['fid'];
$forumpermissions = forum_permissions($fid); $forumpermissions = forum_permissions($fid);
if($forumpermissions['canvotepolls'] == 0) if($forumpermissions['canvotepolls'] == 0)
{ {
 End of changes. 1 change blocks. 
3 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)