mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
mlanthaler: Bugfix: Fixed E_NOTICE error due to uninitialized variable
(merged from branches/gsoc) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@41960 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
dcc83f8ff3
commit
abca2d257a
@ -407,6 +407,7 @@ JS;
|
||||
$descendantIDs = $record->getDescendantIDList('SiteTree');
|
||||
|
||||
// then delete them from the live site too
|
||||
$descendantsRemoved = 0;
|
||||
foreach( $descendantIDs as $descID )
|
||||
if( $descendant = DataObject::get_by_id('SiteTree', $descID) ) {
|
||||
$descendant->delete();
|
||||
|
Loading…
Reference in New Issue
Block a user