diff options
Diffstat (limited to 'app/class/modelrender.php')
-rw-r--r-- | app/class/modelrender.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/app/class/modelrender.php b/app/class/modelrender.php index 3736888..f76a922 100644 --- a/app/class/modelrender.php +++ b/app/class/modelrender.php @@ -60,7 +60,12 @@ class Modelrender extends Modelart if (!empty($this->art->templatebody())) { $templateid = $this->art->templatebody(); $templateart = $this->get($templateid); - $body = $templateart->body(); + if($templateart !== false) { + $body = $templateart->body(); + } else { + $body = $this->art->body(); + $this->art->settemplatebody(''); + } } else { $body = $this->art->body(); } |