From: Chuck Scott Date: Thu, 12 Sep 2019 18:56:43 +0000 (-0400) Subject: Fixing problem with "currentSite" not set correctly when not Provider site. X-Git-Tag: v4.0.1^2~1 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=5648135c0ed157b5d71371dda51f6d64308bfb49;p=WP-Plugins%2Fglm-serverstats.git Fixing problem with "currentSite" not set correctly when not Provider site. --- diff --git a/models/adminServerStats.php b/models/adminServerStats.php index 0bcc3c5..d924212 100755 --- a/models/adminServerStats.php +++ b/models/adminServerStats.php @@ -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