BUGFIX If IsOwner method doesn't exist on parent object in BlogEntry::IsOwner(), don't attempt to call it

This commit is contained in:
Sean Harvey 2009-07-01 04:24:42 +00:00
parent 0122ac9e37
commit f41973b838

View File

@ -168,8 +168,11 @@ class BlogEntry extends Page {
}
function IsOwner() {
return $this->Parent()->IsOwner();
if(method_exists($this->Parent(), 'IsOwner')) {
return $this->Parent()->IsOwner();
}
}
/**
* Call this to enable WYSIWYG editing on your blog entries.
* By default the blog uses BBCode