diff options
author | Zach Copley <zach@controlyourself.ca> | 2009-06-15 23:18:54 -0700 |
---|---|---|
committer | Zach Copley <zach@controlyourself.ca> | 2009-06-15 23:18:54 -0700 |
commit | c3c30aa0eafd42cf6544cb32614ffe164bfd9ca2 (patch) | |
tree | 1a8b15416027a76ba394fa49d8eb3720bae49a9a /lib/currentuserdesignaction.php | |
parent | 37cafad2e071bbfe8a733bba22fb68bbf5220051 (diff) |
Check to make sure a design exists before trying to display it
Diffstat (limited to 'lib/currentuserdesignaction.php')
-rw-r--r-- | lib/currentuserdesignaction.php | 5 |
1 files changed, 4 insertions, 1 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); + } } /** |