mirror of
https://github.com/e107inc/e107.git
synced 2025-08-03 21:27:25 +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);
|
$votep = implode(chr(1), $votes);
|
||||||
$pollArray['poll_votes'] = $votep;
|
$pollArray['poll_votes'] = $votep;
|
||||||
|
$sql->db_Update("polls", "poll_votes = '$votep'".($pollArray['poll_storage_method'] != POLL_MODE_COOKIE ? ", poll_ip='".$poll_ip.$userid."^'" : '')." WHERE poll_id=".$poll_id);
|
||||||
$sql->db_Update("polls", "poll_votes = '$votep', poll_ip='".$poll_ip.$userid."^' WHERE poll_id=".$poll_id);
|
|
||||||
echo "
|
echo "
|
||||||
<script type='text/javascript'>
|
<script type='text/javascript'>
|
||||||
<!--
|
<!--
|
||||||
|
Reference in New Issue
Block a user