From 3bdaa1404cdb906b7748d85a7608e3aa52f24e10 Mon Sep 17 00:00:00 2001 From: Tom Rix Date: Mon, 1 Mar 2010 21:40:36 +0000 Subject: [PATCH] MINOR fix failing tests (from r90509) --- code/SubsitesVirtualPage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/SubsitesVirtualPage.php b/code/SubsitesVirtualPage.php index 8ebd6d0..1c97458 100644 --- a/code/SubsitesVirtualPage.php +++ b/code/SubsitesVirtualPage.php @@ -79,7 +79,7 @@ class SubsitesVirtualPage extends VirtualPage { function syncLinkTracking() { $oldState = Subsite::$disable_subsite_filter; Subsite::$disable_subsite_filter = true; - $this->HasBrokenLink = DataObject::get_by_id('SiteTree', $this->CopyContentFromID) ? false : true; + if ($this->CopyContentFromID) $this->HasBrokenLink = DataObject::get_by_id('SiteTree', $this->CopyContentFromID) ? false : true; Subsite::$disable_subsite_filter = $oldState; }