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:
authormattpiwik <matthieu.aubry@gmail.com>2013-01-16 01:39:22 +0400
committermattpiwik <matthieu.aubry@gmail.com>2013-01-16 01:39:22 +0400
commit995b257c8e22171ae1e89ce79bf2f820509a458f (patch)
tree23a540fd2a60cc9b452b70d2764fb8ba39ffc40c /core/Menu
parent936280f5540179cd45c3c41d753e21808dbfea0d (diff)
Fix problem reported in http://forum.piwik.org/read.php?2,99424
Strict Notice: Only variables should be passed by reference in .../core/Menu/Abstract.php on line 61 git-svn-id: http://dev.piwik.org/svn/trunk@7761 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'core/Menu')
-rw-r--r--core/Menu/Abstract.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/Menu/Abstract.php b/core/Menu/Abstract.php
index 14fa8527e7..d1b483721b 100644
--- a/core/Menu/Abstract.php
+++ b/core/Menu/Abstract.php
@@ -58,7 +58,8 @@ abstract class Piwik_Menu_Abstract
// make sure the idSite value used is numeric (hack-y fix for #3426)
if (!is_numeric(Piwik_Common::getRequestVar('idSite', false)))
{
- $url['idSite'] = reset(Piwik_SitesManager_API::getInstance()->getSitesIdWithAtLeastViewAccess());
+ $idSites = Piwik_SitesManager_API::getInstance()->getSitesIdWithAtLeastViewAccess();
+ $url['idSite'] = reset($idSites);
}
$this->menuEntries[] = array(