diff options
Diffstat (limited to 'plugins/CoreHome/Columns/UserId.php')
-rw-r--r-- | plugins/CoreHome/Columns/UserId.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/plugins/CoreHome/Columns/UserId.php b/plugins/CoreHome/Columns/UserId.php index 4534dac531..50d1be09bc 100644 --- a/plugins/CoreHome/Columns/UserId.php +++ b/plugins/CoreHome/Columns/UserId.php @@ -81,9 +81,11 @@ class UserId extends VisitDimension $period = 'day'; } - foreach ($idSites as $idSite) { - if ($this->isUsedInSiteCached($idSite, $period, $date)) { - return true; + if (!empty($idSites)) { + foreach ($idSites as $idSite) { + if ($this->isUsedInSiteCached($idSite, $period, $date)) { + return true; + } } } |