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>2014-06-06 10:41:25 +0400
committermattab <matthieu.aubry@gmail.com>2014-06-06 10:41:25 +0400
commit4fedce6257ea721c880c198696536d3bf39e1fbf (patch)
treecb963be5715fa5657ff1b8ea7fd6a78817eb6cce /core
parent1f4a8b496999bdf8cbba31ffb541a82dad0d4ee2 (diff)
Fix .PHP Fatal error: Call to a member function getStylesheet() on a non-object in /home/travis/build/piwik/piwik/core/AssetManager/UIAssetFetcher/StylesheetUIAssetFetcher.php on line 59
https://travis-ci.org/piwik/piwik/jobs/26917086
Diffstat (limited to 'core')
-rw-r--r--core/AssetManager/UIAssetFetcher/StylesheetUIAssetFetcher.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/AssetManager/UIAssetFetcher/StylesheetUIAssetFetcher.php b/core/AssetManager/UIAssetFetcher/StylesheetUIAssetFetcher.php
index 75903a9de5..7b003e9508 100644
--- a/core/AssetManager/UIAssetFetcher/StylesheetUIAssetFetcher.php
+++ b/core/AssetManager/UIAssetFetcher/StylesheetUIAssetFetcher.php
@@ -56,6 +56,10 @@ class StylesheetUIAssetFetcher extends UIAssetFetcher
protected function addThemeFiles()
{
+ $theme = $this->getTheme();
+ if(!$theme) {
+ return;
+ }
$themeStylesheet = $this->getTheme()->getStylesheet();
if ($themeStylesheet) {