mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
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:
parent
85313b7e49
commit
6a0d8a70ea
@ -399,6 +399,7 @@ JS;
|
|||||||
$id = $_REQUEST['ID'];
|
$id = $_REQUEST['ID'];
|
||||||
Versioned::reading_stage('Live');
|
Versioned::reading_stage('Live');
|
||||||
$record = DataObject::get_by_id("SiteTree", $id);
|
$record = DataObject::get_by_id("SiteTree", $id);
|
||||||
|
$descRemoved = '';
|
||||||
|
|
||||||
// before deleting the records, get the descendants of this tree
|
// before deleting the records, get the descendants of this tree
|
||||||
if($record) {
|
if($record) {
|
||||||
@ -417,7 +418,7 @@ JS;
|
|||||||
|
|
||||||
Versioned::reading_stage('Stage');
|
Versioned::reading_stage('Stage');
|
||||||
|
|
||||||
if($descendantsRemoved) {
|
if(isset($descendantsRemoved)) {
|
||||||
$descRemoved = " and $descendantsRemoved descendants";
|
$descRemoved = " and $descendantsRemoved descendants";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user