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:
@@ -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'>
|
||||
<!--
|
||||
|
Reference in New Issue
Block a user