diff options
author | Thomas Steur <thomas.steur@gmail.com> | 2016-08-07 14:48:13 +0300 |
---|---|---|
committer | Thomas Steur <thomas.steur@gmail.com> | 2016-08-31 18:07:12 +0300 |
commit | 4d02abdbb61c7883e3a13e0fde93df49fdeae9fc (patch) | |
tree | ad1e425fd1d067cb8e1a842317eba228460cb19c /plugins/Ecommerce/Reports | |
parent | 31ded59b1cccdedef7f1b52b00977e15d486b06e (diff) |
API.getReportMetadata should work only for one site
Diffstat (limited to 'plugins/Ecommerce/Reports')
-rw-r--r-- | plugins/Ecommerce/Reports/Base.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/plugins/Ecommerce/Reports/Base.php b/plugins/Ecommerce/Reports/Base.php index 28a3a4a36f..5fe49dd1e8 100644 --- a/plugins/Ecommerce/Reports/Base.php +++ b/plugins/Ecommerce/Reports/Base.php @@ -54,14 +54,12 @@ abstract class Base extends Report private function isEcommerceEnabledByInfos($infos) { - $idSites = $infos['idSites']; + $idSite = $infos['idSite']; - if (count($idSites) != 1) { + if (empty($idSite)) { return false; } - $idSite = reset($idSites); - return $this->isEcommerceEnabled($idSite); } |