Version 5.0.13
This commit is contained in:
1 parent
b89858b2ff
commit
5efe744c5f
1407 files changed
+69690
-30177
No files matched your search
@@ -11,6 +11,7 @@
|
||||
namespace IPS\Content;
|
||||
|
||||
use BadMethodCallException;
|
||||
use IPS\IPS;
|
||||
use IPS\Member;
|
||||
use IPS\Poll;
|
||||
use IPS\Node\Model;
|
||||
@@ -60,7 +61,8 @@ trait Polls
|
||||
if( $this->mapped('poll') )
|
||||
{
|
||||
/* If the poll is in a club, return the special extended class */
|
||||
if( $this->containerWrapper() AND $club = $this->containerWrapper()->club() )
|
||||
$container = $this->containerWrapper( true );
|
||||
if( $container and IPS::classUsesTrait( $container, ClubContainer::class ) and $club = $container->club() )
|
||||
{
|
||||
$poll = ClubPoll::load( $this->mapped('poll') );
|
||||
$poll->club = $club;
|
||||
|
||||
Reference in new issue
Block a user