]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Check to make sure a design exists before trying to display it
authorZach Copley <zach@controlyourself.ca>
Tue, 16 Jun 2009 06:18:54 +0000 (23:18 -0700)
committerZach Copley <zach@controlyourself.ca>
Tue, 16 Jun 2009 06:18:54 +0000 (23:18 -0700)
lib/currentuserdesignaction.php
lib/ownerdesignaction.php

index 40502bc7762bb22f350e8977d8be31a08df9695a..7c2520cf67cbf292334a821dd952be1caa99da15 100644 (file)
@@ -58,7 +58,10 @@ class CurrentUserDesignAction extends Action
          parent::showStylesheets();
 
          $design = $this->getDesign();
-         $design->showCSS($this);
+
+         if (!empty($design)) {
+             $design->showCSS($this);
+         }
      }
 
     /**
index b6b30a60654ea3846c13f1d4c93e90fb3b9c4e6a..424474f4298d75b69a2cfc5c3dd487641331778f 100644 (file)
@@ -62,7 +62,10 @@ class OwnerDesignAction extends Action {
          parent::showStylesheets();
 
          $design = $this->getDesign();
-         $design->showCSS($this);
+
+         if (!empty($design)) {
+             $design->showCSS($this);
+        }
      }
 
     /**