diff options
author | Mario <mario@mariovavti.com> | 2023-01-11 16:34:23 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2023-01-11 16:34:23 +0000 |
commit | 16555b93bbe4ef69dbbce8085bb366134f8a5654 (patch) | |
tree | cf9364844857cef0c9e246eed7aa913a2a097ac1 /include/items.php | |
parent | 2eb4f093be868ef6ce8372de0375b2e9a2685791 (diff) | |
download | volse-hubzilla-16555b93bbe4ef69dbbce8085bb366134f8a5654.tar.gz volse-hubzilla-16555b93bbe4ef69dbbce8085bb366134f8a5654.tar.bz2 volse-hubzilla-16555b93bbe4ef69dbbce8085bb366134f8a5654.zip |
fix race conditions when processing multiple choice polls
Diffstat (limited to 'include/items.php')
-rw-r--r-- | include/items.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/items.php b/include/items.php index 891f16b7f..900ffe2fa 100644 --- a/include/items.php +++ b/include/items.php @@ -1834,7 +1834,7 @@ function item_store($arr, $allow_exec = false, $deliver = true) { $arr['item_private'] = 0; if(in_array($arr['obj_type'], ['Note','Answer']) && $r[0]['obj_type'] === 'Question' && intval($r[0]['item_wall'])) { - Activity::update_poll($r[0],$arr); + Activity::update_poll($r[0]['id'], $arr); } } |