diff options
author | mattab <matthieu.aubry@gmail.com> | 2014-06-06 10:22:03 +0400 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2014-06-06 10:22:03 +0400 |
commit | b0a26ed036d76da9292b180541436fb5f62224d4 (patch) | |
tree | e8735f1b8dce505c7e873e1dc3ba0dbf6eacdacc /core/Twig.php | |
parent | c828db5ab6e32ab2d79449e214470c0ac526eb08 (diff) |
Prevent notice PHP Fatal error: Call to a member function getPluginName() on a non-object in /home/travis/build/piwik/piwik/core/Twig.php on line 49
Diffstat (limited to 'core/Twig.php')
-rwxr-xr-x | core/Twig.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/Twig.php b/core/Twig.php index 5b876859fc..c2022572c0 100755 --- a/core/Twig.php +++ b/core/Twig.php @@ -46,7 +46,7 @@ class Twig $loaders = array(); //create loader for custom theme to overwrite twig templates - if($theme->getPluginName() != \Piwik\Plugin\Manager::DEFAULT_THEME) { + if($theme && $theme->getPluginName() != \Piwik\Plugin\Manager::DEFAULT_THEME) { $customLoader = $this->getCustomThemeLoader($theme); if ($customLoader) { //make it possible to overwrite plugin templates |