diff options
author | Julien Moumné <julien@moumne.com> | 2014-05-01 01:30:52 +0400 |
---|---|---|
committer | Julien Moumné <julien@moumne.com> | 2014-05-01 01:30:52 +0400 |
commit | 9d444071d7dd2a975ec602f892faf0e903b5f682 (patch) | |
tree | 22799b31683e5aa82e8038ccb35eca5f25e4d7bf /plugins/SitesManager/Controller.php | |
parent | 5f168c7acdd8f51a186c1c76fb79ce5aa3b199dd (diff) |
ref #3838 unnecessary code
Diffstat (limited to 'plugins/SitesManager/Controller.php')
-rw-r--r-- | plugins/SitesManager/Controller.php | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/plugins/SitesManager/Controller.php b/plugins/SitesManager/Controller.php index 68ed3bca71..b315e3cd84 100644 --- a/plugins/SitesManager/Controller.php +++ b/plugins/SitesManager/Controller.php @@ -35,13 +35,7 @@ class Controller extends \Piwik\Plugin\ControllerAdmin $view = new View('@SitesManager/index'); Site::clearCache(); - $sitesRaw = API::getInstance()->getSitesWithAdminAccess(); - - // Gets sites after Site.setSite hook was called - $sites = array_values( Site::getSites() ); - if(count($sites) != count($sitesRaw)) { - throw new Exception("One or more website are missing or invalid."); - } + $sites = API::getInstance()->getSitesWithAdminAccess(); foreach ($sites as &$site) { $site['alias_urls'] = API::getInstance()->getSiteUrlsFromId($site['idsite']); |