mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Fix typo in docs (via Joe Harvey).
This commit is contained in:
parent
6c02cea530
commit
15dbfe8f1c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user