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
diff options
context:
space:
mode:
-rwxr-xr-xcore/Twig.php2
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