function initVotes() { if (!$this->isEnabled() || !$this->_oQuery) { return; } $aVote = $this->_oQuery->getVote($this->getId()); if (empty($aVote) || !is_array($aVote)) { return; } $this->_iCount = $aVote['count']; $this->_fRate = $aVote['rate']; }