Renamed various fields from 'amount' to 'queryAmount' to prevent interfering with the getAmountAttribute property.

This commit is contained in:
James Cole 2015-04-09 21:18:18 +02:00
parent 1d67d2250a
commit 3851652821

View File

@ -67,8 +67,8 @@ class Steam
public function limitArray(array $array, $limit = 10)
{
$others = [
'name' => 'Others',
'amount' => 0
'name' => 'Others',
'queryAmount' => 0
];
$return = [];
$count = 0;
@ -76,7 +76,7 @@ class Steam
if ($count < ($limit - 1)) {
$return[$id] = $entry;
} else {
$others['amount'] += $entry['amount'];
$others['queryAmount'] += $entry['queryAmount'];
}
$count++;