Version 4.7.0

This commit is contained in:
Neo committed 2025-12-19 16:00:35 -08:00
1 parent 517a5e1f70
commit 8ba7d43898
1933 files changed
+65613 -11332

No files matched your search

+4 -5
View File
@@ -232,11 +232,6 @@ class _Poll extends \IPS\Patterns\ActiveRecord implements \SplSubject
if ( trim( $answerData['value'] ) !== "" )
{
$choices[ $k ]['choice'][ $answerId ] = $answerData['value'];
if ( isset( $answerData['count'] ) and \IPS\Member::loggedIn()->modPermission('can_edit_poll_votes') )
{
$count = ( $answerData['count'] > 0 ? \intval( $answerData['count'] ) : 0 );
}
}
$choices[ $k ]['votes'][ $answerId ] = $count;
@@ -554,6 +549,10 @@ class _Poll extends \IPS\Patterns\ActiveRecord implements \SplSubject
{
return TRUE;
}
else if( $this->poll_closed )
{
return TRUE;
}
else if ( isset( \IPS\Request::i()->nullVote ) and \IPS\Member::loggedIn()->member_id )
{
if ( ! $this->getVote() )