diff --git a/code/BlogEntry.php b/code/BlogEntry.php index 2fe2157..292b6e9 100644 --- a/code/BlogEntry.php +++ b/code/BlogEntry.php @@ -109,7 +109,10 @@ class BlogEntry extends Page { * Get the sidebar from the BlogHolder. */ function SideBar() { - return $this->getParent()->SideBar(); + if(method_exists($this->Parent(), 'SideBar')) { + return $this->getParent()->SideBar(); + } + } function Content() {