Empty poll bock on profiles?

If a member has no polls, the block appears on their profile, but collapsed/empty. Shouldn't this be hidden if they have no polls?

 

Quote · 27 Sep 2012

Hello

Looks like it's a bug. You may fix it by modifying modules/boonex/poll/classes/BxPollModule.php file. Find the function searchProfilePolls and replace it with this one.

 

function searchProfilePolls($iProfileId, $iLimit = 6, $bUseInitPart = true, $bShowEmptyMsg = true, $bUseDesignBox = true) {
            $this -> oSearch -> aCurrent['restriction']['my']['value'] = $iProfileId;            
            $sOutputCode = $this -> showSearchResult( _t('_bx_polls_profile'), null, $iLimit, false, 1, $bUseDesignBox, $bShowEmptyMsg );

        if($bUseInitPart && !empty($sOutputCode))
                $sOutputCode = $this -> getInitPollPage() . $sOutputCode;

            return $sOutputCode;         
        }

I checked on my end and it helped. Good luck.

Best Regards AntonLV - http://www.boonex.com/market/posts/AntonLV
Quote · 27 Sep 2012

Thanks, that did it!

Quote · 27 Sep 2012
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.