COMMENT: in some cases, this might not be correctly triggered

This commit is contained in:
Geoff Munn 2009-07-28 04:17:38 +00:00
parent c438757b28
commit af3b912749

View File

@ -86,7 +86,8 @@ class BlogHolder extends BlogTree implements PermissionProvider {
parent::requireDefaultRecords();
$blogHolder = DataObject::get_one('BlogHolder');
if(!($blogHolder && $blogHolder->exists())) {
//TODO: This does not check for whether this blogholder is an orphan or not
if(!$blogHolder) {
$blogholder = new BlogHolder();
$blogholder->Title = "Blog";
$blogholder->URLSegment = "blog";