From e5060b6d30662f2247df715dbf0818add43a85ce Mon Sep 17 00:00:00 2001 From: Andrew O'Neil Date: Tue, 2 Oct 2007 05:08:36 +0000 Subject: [PATCH] Fix php notice (merged from 2.1.0 branch, r42205) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@42933 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- code/CMSMain.php | 1 + 1 file changed, 1 insertion(+) diff --git a/code/CMSMain.php b/code/CMSMain.php index 95ce7eea..a5e8c34f 100644 --- a/code/CMSMain.php +++ b/code/CMSMain.php @@ -431,6 +431,7 @@ JS; Versioned::reading_stage('Live'); $record = DataObject::get_by_id("SiteTree", $id); $descRemoved = ''; + $descendantsRemoved = 0; // before deleting the records, get the descendants of this tree if($record) {