AntonLV 7 лет назад
Родитель
Сommit
6eeb2e17d4
1 измененных файлов с 3 добавлено и 1 удалено
  1. 3 1
      modules/boonex/polls/classes/BxPollsDb.php

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

@@ -22,7 +22,9 @@ class BxPollsDb extends BxBaseModTextDb
     public function getContentInfoById ($iContentId)
     {
         $aContentInfo = parent::getContentInfoById($iContentId);
-        $aContentInfo['salt'] = $this->_oConfig->getSalt();
+        if(!empty($aContentInfo) && is_array($aContentInfo))
+            $aContentInfo['salt'] = $this->_oConfig->getSalt();
+
         return $aContentInfo;
     }