Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/core/Menu
diff options
context:
space:
mode:
authormattab <matthieu.aubry@gmail.com>2014-10-03 07:39:53 +0400
committermattab <matthieu.aubry@gmail.com>2014-10-03 07:39:53 +0400
commit92f98d766309bf34e269b816eccf7eecd30380b4 (patch)
tree63f4cb53b479c44d572ca45c42bd61567932af4f /core/Menu
parent699f9cd8bd84ee53c8b4e65e948052dbd8858d10 (diff)
Fixes #6374 Make sure top menu URLs are generated properly based on user preferences , refs #3426
Diffstat (limited to 'core/Menu')
-rw-r--r--core/Menu/MenuAbstract.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/Menu/MenuAbstract.php b/core/Menu/MenuAbstract.php
index 8fcc4786cc..0d77ff21d0 100644
--- a/core/Menu/MenuAbstract.php
+++ b/core/Menu/MenuAbstract.php
@@ -103,7 +103,7 @@ abstract class MenuAbstract extends Singleton
public function addItem($menuName, $subMenuName, $url, $order = 50, $tooltip = false)
{
// make sure the idSite value used is numeric (hack-y fix for #3426)
- if (!is_numeric(Common::getRequestVar('idSite', false))) {
+ if (isset($url['idSite']) && !is_numeric($url['idSite'])) {
$idSites = API::getInstance()->getSitesIdWithAtLeastViewAccess();
$url['idSite'] = reset($idSites);
}