Loading modules/Analytics/Models/AnalyticsWebsiteByRefererModel.php +2 −2 Original line number Diff line number Diff line Loading @@ -73,7 +73,7 @@ class AnalyticsWebsiteByRefererModel extends Model ! ($found = cache("{$podcastId}_analytics_website_by_domain_weekly")) ) { $oneWeekAgo = date('Y-m-d', strtotime('-1 week')); $found = $this->select("SUBSTRING_INDEX(domain, '.', -2) as labels") $found = $this->select('domain as labels') ->selectSum('hits', 'values') ->where([ 'podcast_id' => $podcastId, Loading @@ -100,7 +100,7 @@ class AnalyticsWebsiteByRefererModel extends Model ! ($found = cache("{$podcastId}_analytics_website_by_domain_yearly")) ) { $oneYearAgo = date('Y-m-d', strtotime('-1 year')); $found = $this->select("SUBSTRING_INDEX(domain, '.', -2) as labels") $found = $this->select('domain as labels') ->selectSum('hits', 'values') ->where([ 'podcast_id' => $podcastId, Loading Loading
modules/Analytics/Models/AnalyticsWebsiteByRefererModel.php +2 −2 Original line number Diff line number Diff line Loading @@ -73,7 +73,7 @@ class AnalyticsWebsiteByRefererModel extends Model ! ($found = cache("{$podcastId}_analytics_website_by_domain_weekly")) ) { $oneWeekAgo = date('Y-m-d', strtotime('-1 week')); $found = $this->select("SUBSTRING_INDEX(domain, '.', -2) as labels") $found = $this->select('domain as labels') ->selectSum('hits', 'values') ->where([ 'podcast_id' => $podcastId, Loading @@ -100,7 +100,7 @@ class AnalyticsWebsiteByRefererModel extends Model ! ($found = cache("{$podcastId}_analytics_website_by_domain_yearly")) ) { $oneYearAgo = date('Y-m-d', strtotime('-1 year')); $found = $this->select("SUBSTRING_INDEX(domain, '.', -2) as labels") $found = $this->select('domain as labels') ->selectSum('hits', 'values') ->where([ 'podcast_id' => $podcastId, Loading