1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 11:50:30 +02:00

Bugtracker #5257: finetune update polls when not using cookies. Thanks Fanat1k.

This commit is contained in:
nlstart
2011-08-12 19:37:36 +00:00
parent 3b6c308055
commit fce24b1989

View File

@@ -256,8 +256,7 @@ class poll
}
$votep = implode(chr(1), $votes);
$pollArray['poll_votes'] = $votep;
$sql->db_Update("polls", "poll_votes = '$votep', poll_ip='".$poll_ip.$userid."^' WHERE poll_id=".$poll_id);
$sql->db_Update("polls", "poll_votes = '$votep'".($pollArray['poll_storage_method'] != POLL_MODE_COOKIE ? ", poll_ip='".$poll_ip.$userid."^'" : '')." WHERE poll_id=".$poll_id);
echo "
<script type='text/javascript'>
<!--