diff options
author | mattab <matthieu.aubry@gmail.com> | 2013-12-12 03:23:44 +0400 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2013-12-12 03:23:44 +0400 |
commit | 451ceac80a9de14772658fc43a1d359e981ca866 (patch) | |
tree | c049926aede4bde4561ecdb69f534ace40906c8e /core | |
parent | d41e099f80805d47768cd2e6d91a7390cfa062c7 (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.php | 6 |
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 = ''; |