Fixed php notices

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@39332 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Andrew O'Neil 2007-07-27 05:26:00 +00:00
parent 85313b7e49
commit 6a0d8a70ea

View File

@ -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";
}