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,7 +58,10 @@ class CurrentUserDesignAction extends Action
parent::showStylesheets();
$design = $this->getDesign();
$design->showCSS($this);
if (!empty($design)) {
$design->showCSS($this);
}
}
/**

View File

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