2010-06-02, 10:01 PM
if($poll['closed'] == 1 || $thread['closed'] == 1 || ($expiretime < $now && $poll['timeout'] > 0))
{
$showresults = 1;
}
This is returning true.
if($alreadyvoted || $showresults)
{
if($alreadyvoted)
{
$pollstatus = $lang->already_voted;
}
else
{
$pollstatus = $lang->poll_closed;
}
}
So if it's saying it's closed it's because of the first bit of code, it doesn't think they've voted.
After that first bit of code I posted, line 303 of ./showthread.php, add:
$poll['closed'] . " " . $thread['closed'] . " " . $expiretime . " " . $now . " " . $poll['timeout']
Obviously that's going to output for everybody unless you put some other conditionals around it. Just want to see what it thinks it's working with.