diff --git a/code/CMSMain.php b/code/CMSMain.php index 95ce7eea..a5e8c34f 100644 --- a/code/CMSMain.php +++ b/code/CMSMain.php @@ -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) {