fix off-by-one error in poll results display
This commit is contained in:
parent
cbf16a4974
commit
d990357be9
@ -166,7 +166,9 @@ class Poll extends Managed_DataObject
|
|||||||
|
|
||||||
$raw = array();
|
$raw = array();
|
||||||
while ($pr->fetch()) {
|
while ($pr->fetch()) {
|
||||||
$raw[$pr->selection] = $pr->votes;
|
// Votes list 1-based
|
||||||
|
// Array stores 0-based
|
||||||
|
$raw[$pr->selection - 1] = $pr->votes;
|
||||||
}
|
}
|
||||||
|
|
||||||
$counts = array();
|
$counts = array();
|
||||||
|
Loading…
Reference in New Issue
Block a user