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
diff options
context:
space:
mode:
authormattpiwik <matthieu.aubry@gmail.com>2012-09-12 08:57:40 +0400
committermattpiwik <matthieu.aubry@gmail.com>2012-09-12 08:57:40 +0400
commit2bdfceca5009b8b8b1b34e9b8085ed219d6d1663 (patch)
treecd0ef7072dc7b77282f87ddf1feedbd4284ed518 /core
parent738bb4b823960fcbb8cefe8ca2e384c06607acdf (diff)
Follow up of previous api change + cleanup NOTICEs in tests
git-svn-id: http://dev.piwik.org/svn/trunk@6974 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'core')
-rw-r--r--core/Access.php5
-rw-r--r--core/RankingQuery.php2
-rw-r--r--core/Tracker/Visit.php2
3 files changed, 3 insertions, 6 deletions
diff --git a/core/Access.php b/core/Access.php
index 0205c408fd..6396aeb18b 100644
--- a/core/Access.php
+++ b/core/Access.php
@@ -394,10 +394,7 @@ class Piwik_Access
$idSites = $this->getSitesIdWithAtLeastViewAccess();
}
- if(!is_array($idSites))
- {
- $idSites = Piwik_Site::getIdSitesFromIdSitesString($idSites);
- }
+ $idSites = Piwik_Site::getIdSitesFromIdSitesString($idSites);
if(empty($idSites))
{
throw new Piwik_Access_NoAccessException("The parameter 'idSite=' is missing from the request.");
diff --git a/core/RankingQuery.php b/core/RankingQuery.php
index 9003fb4061..8de988b7df 100644
--- a/core/RankingQuery.php
+++ b/core/RankingQuery.php
@@ -85,7 +85,7 @@ class Piwik_RankingQuery
* The constructor.
* Can be used as a shortcut for setLimit()
*/
- public function __construct($limit=false)
+ public function __construct($limit = false)
{
if ($limit !== false)
{
diff --git a/core/Tracker/Visit.php b/core/Tracker/Visit.php
index 58e0f435eb..4475adbb76 100644
--- a/core/Tracker/Visit.php
+++ b/core/Tracker/Visit.php
@@ -746,7 +746,7 @@ class Piwik_Tracker_Visit implements Piwik_Tracker_Visit_Interface
$toRecord = Piwik_Common::getRequestVar($parameterForceRecord, false, 'int', $this->request);
if(!$toRecord)
{
- printDebug($_SERVER['REQUEST_METHOD'].' parameter '.$parameterForceRecord.' not found in URL, request excluded');
+ printDebug(@$_SERVER['REQUEST_METHOD'].' parameter '.$parameterForceRecord.' not found in URL, request excluded');
$excluded = true;
printDebug("'$parameterForceRecord' parameter not found.");
}