mirror of
https://github.com/standardebooks/web.git
synced 2025-07-14 10:31:59 -04:00
Improve handling of returning patrons
This commit is contained in:
parent
dbefba6b94
commit
32206f3cd7
10 changed files with 61 additions and 55 deletions
|
@ -25,7 +25,7 @@ class Poll extends PropertiesBase{
|
|||
|
||||
protected function GetVoteCount(): int{
|
||||
if($this->VoteCount === null){
|
||||
$this->VoteCount = (Db::Query('select count(*) as VoteCount from Votes v inner join PollItems pi on v.PollItemId = pi.PollItemId where pi.PollId = ?', [$this->PollId]))[0]->VoteCount;
|
||||
$this->VoteCount = Db::QueryInt('select count(*) from Votes v inner join PollItems pi on v.PollItemId = pi.PollItemId where pi.PollId = ?', [$this->PollId]);
|
||||
}
|
||||
|
||||
return $this->VoteCount;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue