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