From 6a0d8a70ea336a06619e0881002804e4827854d7 Mon Sep 17 00:00:00 2001 From: Andrew O'Neil Date: Fri, 27 Jul 2007 05:26:00 +0000 Subject: [PATCH] Fixed php notices git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@39332 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- code/CMSMain.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/CMSMain.php b/code/CMSMain.php index 687a87ff..e3424915 100644 --- a/code/CMSMain.php +++ b/code/CMSMain.php @@ -399,6 +399,7 @@ JS; $id = $_REQUEST['ID']; Versioned::reading_stage('Live'); $record = DataObject::get_by_id("SiteTree", $id); + $descRemoved = ''; // before deleting the records, get the descendants of this tree if($record) { @@ -417,7 +418,7 @@ JS; Versioned::reading_stage('Stage'); - if($descendantsRemoved) { + if(isset($descendantsRemoved)) { $descRemoved = " and $descendantsRemoved descendants"; }