Check to make sure a design exists before trying to display it

This commit is contained in:
Zach Copley 2009-06-15 23:18:54 -07:00
parent 37cafad2e0
commit c3c30aa0ea
2 changed files with 8 additions and 2 deletions

View File

@ -58,8 +58,11 @@ class CurrentUserDesignAction extends Action
parent::showStylesheets(); parent::showStylesheets();
$design = $this->getDesign(); $design = $this->getDesign();
if (!empty($design)) {
$design->showCSS($this); $design->showCSS($this);
} }
}
/** /**
* A design for this action * A design for this action

View File

@ -62,8 +62,11 @@ class OwnerDesignAction extends Action {
parent::showStylesheets(); parent::showStylesheets();
$design = $this->getDesign(); $design = $this->getDesign();
if (!empty($design)) {
$design->showCSS($this); $design->showCSS($this);
} }
}
/** /**
* A design for this action * A design for this action