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
This commit is contained in:
Andrew O'Neil 2007-10-02 05:08:36 +00:00
parent 997f3d09d0
commit e5060b6d30

View File

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