2010-11-07, 04:46 PM
Hello, every time i host a poll and someone votes, it gives warning messages and then continues with the post. Is there anyways I can get rid of these warnings? Attached is a image file.
(2010-11-07, 04:46 PM)MadCatZA Wrote: [ -> ]Hello, every time i host a poll and someone votes, it gives warning messages and then continues with the post. Is there anyways I can get rid of these warnings? Attached is a image file.
(2010-11-07, 04:49 PM)Jack123 Wrote: [ -> ](2010-11-07, 04:46 PM)MadCatZA Wrote: [ -> ]Hello, every time i host a poll and someone votes, it gives warning messages and then continues with the post. Is there anyways I can get rid of these warnings? Attached is a image file.
You've blanked out part of the warning message so it makes it impossible to read it
elseif(!$mybb->user['uid'])
{
// Give a cookie to guests to inhibit revotes
$votes_cookie = implode(',', array_keys($mybb->input['option']));
my_setcookie("pollvotes[{$poll['pid']}]", $votes_cookie);
}
(2010-11-07, 07:11 PM)MattRogowski Wrote: [ -> ]Have you uploaded a new copy of the file?? As I've said, this code doesn't even run for logged in users. Look:
elseif(!$mybb->user['uid']) { // Give a cookie to guests to inhibit revotes $votes_cookie = implode(',', array_keys($mybb->input['option'])); my_setcookie("pollvotes[{$poll['pid']}]", $votes_cookie); }
It only runs if you have no UID, i.e. you're a guest.