Improved comments

This commit is contained in:
DL6ER
2016-12-25 20:14:59 +01:00
parent dfa1737542
commit e83dc5636f
+4 -1
View File
@@ -83,18 +83,21 @@
// Sort array in descending order
arsort($dns_domains);
// Prepare arrays for Top Items
// Prepare arrays and counters for Top Items
$topDomains = []; $domaincounter = 0;
$topAds = []; $adcounter = 0;
// Default number of Top Items to show is 10
$qty = 10;
// If argument is numeric, the user may want to
// see a different number of entries
if(is_numeric($argument))
{
$qty = intval($argument);
}
// Process sorted domain names
foreach ($dns_domains as $key => $value) {
if(isset($gravity_domains[$key]) && $adcounter < $qty)
{