From 60735fd8131072f8e5aa430c8467c75522a353f0 Mon Sep 17 00:00:00 2001 From: Will Rossiter Date: Thu, 16 Jul 2009 02:06:59 +0000 Subject: [PATCH] Merged r81461 from trunk git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.3@81965 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- code/CMSMain.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/CMSMain.php b/code/CMSMain.php index 695f4429..30140ff0 100644 --- a/code/CMSMain.php +++ b/code/CMSMain.php @@ -706,7 +706,7 @@ JS; FormResponse::add("$('Form_EditForm').reloadIfSetTo($page->ID);"); } - FormResponse::status_message($statusMessage, 'good'); + if($statusMessage) FormResponse::status_message($statusMessage, 'good'); FormResponse::add("$('Form_EditForm').elements.StageURLSegment.value = '$JS_stageURL';"); FormResponse::add("$('Form_EditForm').elements.LiveURLSegment.value = '$JS_liveURL';"); FormResponse::add("$('Form_EditForm').notify('PagePublished', $('Form_EditForm').elements.ID.value);");