From: Zach Copley Date: Tue, 16 Jun 2009 06:18:54 +0000 (-0700) Subject: Check to make sure a design exists before trying to display it X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c3c30aa0eafd42cf6544cb32614ffe164bfd9ca2;p=quix0rs-gnu-social.git Check to make sure a design exists before trying to display it --- diff --git a/lib/currentuserdesignaction.php b/lib/currentuserdesignaction.php index 40502bc776..7c2520cf67 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); + } } /** diff --git a/lib/ownerdesignaction.php b/lib/ownerdesignaction.php index b6b30a6065..424474f429 100644 --- a/lib/ownerdesignaction.php +++ b/lib/ownerdesignaction.php @@ -62,7 +62,10 @@ class OwnerDesignAction extends Action { parent::showStylesheets(); $design = $this->getDesign(); - $design->showCSS($this); + + if (!empty($design)) { + $design->showCSS($this); + } } /**