diff --git a/webgui/include/ajax/functions/AdminUserLogs.php b/webgui/include/ajax/functions/AdminUserLogs.php index 7ebab2eadedc65d92157b399faf59a0b97deccac..30159a923392afa374879b1d594dc5bc49bac12c 100644 --- a/webgui/include/ajax/functions/AdminUserLogs.php +++ b/webgui/include/ajax/functions/AdminUserLogs.php @@ -267,7 +267,7 @@ function getAdminUserLogsSummary($params) { $resultArray['AllTrafficTopups'][$t]['ValidTo'] = $topupItem['ValidTo']; $t++; - $resultArray['trafficTopups'] += isset($topupItem['CurrentLimit']) ? $topupITem['CurrentLimit'] : $topupItem['Limit']; + $resultArray['trafficTopups'] += isset($topupItem['CurrentLimit']) ? $topupItem['CurrentLimit'] : $topupItem['Limit']; $resultArray['TotalTrafficTopups'] += $topupItem['Limit']; # Subtract this topup from excessTraffic usage @@ -334,7 +334,7 @@ function getAdminUserLogsSummary($params) { $resultArray['AllUptimeTopups'][$u]['ValidTo'] = $topupItem['ValidTo']; $u++; - $resultArray['uptimeTopups'] += isset($topupItem['CurrentLimit']) ? $topupITem['CurrentLimit'] : $topupItem['Limit']; + $resultArray['uptimeTopups'] += isset($topupItem['CurrentLimit']) ? $topupItem['CurrentLimit'] : $topupItem['Limit']; $resultArray['TotalUptimeTopups'] += $topupItem['Limit']; # Subtract this topup from excessUptime usage diff --git a/webgui/include/ajax/functions/WiSPUserLogs.php b/webgui/include/ajax/functions/WiSPUserLogs.php index 9ecbff6b88a6510ef470024570b97cffc9927e28..50f98ec3a7c631c2304affe4e0fa1a5ad5386da0 100644 --- a/webgui/include/ajax/functions/WiSPUserLogs.php +++ b/webgui/include/ajax/functions/WiSPUserLogs.php @@ -267,7 +267,7 @@ function getWiSPUserLogsSummary($params) { $resultArray['AllTrafficTopups'][$t]['ValidTo'] = $topupItem['ValidTo']; $t++; - $resultArray['trafficTopups'] += isset($topupItem['CurrentLimit']) ? $topupITem['CurrentLimit'] : $topupItem['Limit']; + $resultArray['trafficTopups'] += isset($topupItem['CurrentLimit']) ? $topupItem['CurrentLimit'] : $topupItem['Limit']; $resultArray['TotalTrafficTopups'] += $topupItem['Limit']; # Subtract this topup from excessTraffic usage @@ -334,7 +334,7 @@ function getWiSPUserLogsSummary($params) { $resultArray['AllUptimeTopups'][$u]['ValidTo'] = $topupItem['ValidTo']; $u++; - $resultArray['uptimeTopups'] += isset($topupItem['CurrentLimit']) ? $topupITem['CurrentLimit'] : $topupItem['Limit']; + $resultArray['uptimeTopups'] += isset($topupItem['CurrentLimit']) ? $topupItem['CurrentLimit'] : $topupItem['Limit']; $resultArray['TotalUptimeTopups'] += $topupItem['Limit']; # Subtract this topup from excessUptime usage