Version 4.1.19.4

This commit is contained in:
Neo committed 2025-12-19 05:42:01 -08:00
1 parent 2bd5025018
commit 0dc2aee5ed
312 files changed
+53730 -32118

No files matched your search

+5
View File
@@ -237,6 +237,8 @@ class _Poll extends \IPS\Patterns\ActiveRecord implements \SplSubject
*/
public function addVote( \IPS\Poll\Vote $vote, \IPS\Member $member = NULL )
{
$member = $member ?: \IPS\Member::loggedIn();
/* Delete existing vote */
if ( $existingVote = $this->getVote( $member ) )
{
@@ -248,6 +250,9 @@ class _Poll extends \IPS\Patterns\ActiveRecord implements \SplSubject
$vote->save();
$this->notify();
// Associate the vote with the member id in the cache
$this->_voteCache[ $member->member_id ] = $vote;
/* Log */
if ( $vote->member_choices !== NULL )
{