BUGFIX: Modded getParentClassName() for when $this->BaseClass is not set

This commit is contained in:
Russell Michell 2012-12-19 15:07:18 +13:00
parent ce3af93a50
commit c89a8d02ce

View File

@ -151,6 +151,10 @@ class Comment extends DataObject {
* @return string
*/
public function getParentClassName() {
$default = 'SiteTree';
if(!$this->BaseClass) {
return $default;
}
return $this->BaseClass;
}