fix off-by-one error in poll results display
This commit is contained in:
		@@ -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();
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user