summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/currentuserdesignaction.php5
-rw-r--r--lib/ownerdesignaction.php5
2 files changed, 8 insertions, 2 deletions
diff --git a/lib/currentuserdesignaction.php b/lib/currentuserdesignaction.php
index 40502bc77..7c2520cf6 100644
--- a/lib/currentuserdesignaction.php
+++ b/lib/currentuserdesignaction.php
@@ -58,7 +58,10 @@ class CurrentUserDesignAction extends Action
parent::showStylesheets();
$design = $this->getDesign();
- $design->showCSS($this);
+
+ if (!empty($design)) {
+ $design->showCSS($this);
+ }
}
/**
diff --git a/lib/ownerdesignaction.php b/lib/ownerdesignaction.php
index b6b30a606..424474f42 100644
--- a/lib/ownerdesignaction.php
+++ b/lib/ownerdesignaction.php
@@ -62,7 +62,10 @@ class OwnerDesignAction extends Action {
parent::showStylesheets();
$design = $this->getDesign();
- $design->showCSS($this);
+
+ if (!empty($design)) {
+ $design->showCSS($this);
+ }
}
/**