Fix typo in docs (via Joe Harvey).

This commit is contained in:
Will Rossiter 2012-07-21 21:36:41 +12:00
parent 6c02cea530
commit 15dbfe8f1c

View File

@ -313,7 +313,7 @@ Create the function 'BrowserPollResults' on the *HomePage_Controller* class.
$list = new ArrayList();
foreach($submissions->groupBy('Browser') as $browserName => $browserSubmissions) {
$percentage = (int) ($data->Count() / $total * 100);
$percentage = (int) ($browserSubmissions->Count() / $total * 100);
$list->push(new ArrayData(array(
'Browser' => $browserName,
'Percentage' => $percentage