Fix php notice

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.1.0@42203 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Andrew O'Neil 2007-09-17 21:42:00 +00:00 committed by Sam Minnee
parent a5878ad2c9
commit d71d3c2253
1 changed files with 1 additions and 0 deletions

View File

@ -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) {