AntonLV 7 anos atrás
pai
commit
69e13667cf

+ 7 - 0
modules/boonex/polls/classes/BxPollsDb.php

@@ -19,6 +19,13 @@ class BxPollsDb extends BxBaseModTextDb
         parent::__construct($oConfig);
     }
 
+    public function getContentInfoById ($iContentId)
+    {
+        $aContentInfo = parent::getContentInfoById($iContentId);
+        $aContentInfo['salt'] = $this->_oConfig->getSalt();
+        return $aContentInfo;
+    }
+
     public function isPerformed($iEntryId, $iAuthorId)
     {
         $CNF = &$this->_oConfig->CNF;

+ 3 - 1
modules/boonex/polls/classes/BxPollsModule.php

@@ -189,7 +189,9 @@ class BxPollsModule extends BxBaseModTextModule
             return $mixedResult;
 
         list($iContentId, $aContentInfo) = $mixedResult;
-        $aContentInfo['salt'] = bx_get('salt') !== false ? bx_process_input(bx_get('salt')) : $this->_oConfig->getSalt();
+
+        if(bx_get('salt') !== false)
+            $aContentInfo['salt'] = bx_process_input(bx_get('salt'));
     
         return array($iContentId, $aContentInfo);
     }