Fixing problem with "currentSite" not set correctly when not Provider site.
authorChuck Scott <cscott@gaslightmedia.com>
Thu, 12 Sep 2019 18:56:43 +0000 (14:56 -0400)
committerChuck Scott <cscott@gaslightmedia.com>
Thu, 12 Sep 2019 18:56:43 +0000 (14:56 -0400)
models/adminServerStats.php

index 0bcc3c5..d924212 100755 (executable)
@@ -212,6 +212,9 @@ class adminServerStats extends glmServerStatsBandwidthSupport
             // Get list of sites in the bandwidth database
             $websites = $this->bandwidthLastMonthAllSites($sortBy);
 
+        } else {
+            // Get the settings for the currently selected site
+            $currentSite = bandwidthGetWebsiteSettingsFromName($currentSiteName);
         }
 
         // Get bandwidth stats for the current site