From d71d3c2253eb62231fc4ab299c7cb27a054865c1 Mon Sep 17 00:00:00 2001 From: Andrew O'Neil Date: Mon, 17 Sep 2007 21:42:00 +0000 Subject: [PATCH] Fix php notice git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.1.0@42203 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 66f58b5d..12440f9f 100644 --- a/code/CMSMain.php +++ b/code/CMSMain.php @@ -407,6 +407,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) {