mirror of
https://github.com/standardebooks/web.git
synced 2025-07-22 23:34:48 -04:00
Rename Vote object to PollVote
This commit is contained in:
parent
8168a125d0
commit
4efc5dcdaf
12 changed files with 41 additions and 30 deletions
|
@ -36,7 +36,7 @@ class Poll extends PropertiesBase{
|
|||
|
||||
protected function GetVoteCount(): int{
|
||||
if($this->_VoteCount === null){
|
||||
$this->_VoteCount = Db::QueryInt('select count(*) from Votes v inner join PollItems pi on v.PollItemId = pi.PollItemId where pi.PollId = ?', [$this->PollId]);
|
||||
$this->_VoteCount = Db::QueryInt('SELECT count(*) from PollVotes pv inner join PollItems pi using (PollItemId) where pi.PollId = ?', [$this->PollId]);
|
||||
}
|
||||
|
||||
return $this->_VoteCount;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue