Check to make sure a design exists before trying to display it
This commit is contained in:
@@ -58,7 +58,10 @@ class CurrentUserDesignAction extends Action
|
||||
parent::showStylesheets();
|
||||
|
||||
$design = $this->getDesign();
|
||||
$design->showCSS($this);
|
||||
|
||||
if (!empty($design)) {
|
||||
$design->showCSS($this);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -62,7 +62,10 @@ class OwnerDesignAction extends Action {
|
||||
parent::showStylesheets();
|
||||
|
||||
$design = $this->getDesign();
|
||||
$design->showCSS($this);
|
||||
|
||||
if (!empty($design)) {
|
||||
$design->showCSS($this);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user