elofgren: VAR FIXES: Fix 2 undefined variable errors in CMSMain::deletefromlive() and 1 in CMSMain::deleteitems() that showed up in status messages while deleting pages.

(merged from branches/gsoc)


git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@41842 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2007-09-15 00:46:22 +00:00
parent 8f980e1e02
commit dfa6b99f18
1 changed files with 3 additions and 1 deletions

View File

@ -427,6 +427,8 @@ JS;
if(isset($descendantsRemoved)) {
$descRemoved = " and $descendantsRemoved descendants";
} else {
$descRemoved = '';
}
$title = Convert::raw2js($record->Title);
@ -937,7 +939,7 @@ HTML;
$s = sizeof($ids) > 1 ? "s" : "";
$message = sizeof($ids) . " page$s deleted.";
if($brokenPageList != '') {
if(isset($brokenPageList) && $brokenPageList != '') {
$message .= " The following pages now have broken links:<ul>" . addslashes($brokenPageList) . "</ul>Their owners have been emailed and they will fix up those pages.";
}