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:
authormattab <matthieu.aubry@gmail.com>2013-12-12 03:23:44 +0400
committermattab <matthieu.aubry@gmail.com>2013-12-12 03:23:44 +0400
commit451ceac80a9de14772658fc43a1d359e981ca866 (patch)
treec049926aede4bde4561ecdb69f534ace40906c8e /core
parentd41e099f80805d47768cd2e6d91a7390cfa062c7 (diff)
Attempt at fixing bug
http://forum.piwik.org/read.php?2,108176,page=1#msg-108190
Diffstat (limited to 'core')
-rw-r--r--core/Plugin/Controller.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/Plugin/Controller.php b/core/Plugin/Controller.php
index 27fb10fa9e..62ee0094dc 100644
--- a/core/Plugin/Controller.php
+++ b/core/Plugin/Controller.php
@@ -699,13 +699,13 @@ abstract class Controller
public function redirectToIndex($moduleToRedirect, $actionToRedirect, $websiteId = null, $defaultPeriod = null,
$defaultDate = null, $parameters = array())
{
- if (is_null($websiteId)) {
+ if (empty($websiteId)) {
$websiteId = $this->getDefaultWebsiteId();
}
- if (is_null($defaultDate)) {
+ if (empty($defaultDate)) {
$defaultDate = $this->getDefaultDate();
}
- if (is_null($defaultPeriod)) {
+ if (empty($defaultPeriod)) {
$defaultPeriod = $this->getDefaultPeriod();
}
$parametersString = '';