diff --git a/security/Security.php b/security/Security.php index 49cc60e35..48ed4e3f6 100644 --- a/security/Security.php +++ b/security/Security.php @@ -238,6 +238,7 @@ class Security extends Controller { $tmpPage = new Page(); $tmpPage->Title = "Log in"; $tmpPage->URLSegment = "Security"; + $tmpPage->ID = -1; // Set the page ID to -1 so we dont get the top level pages as its children $controller = new Page_Controller($tmpPage); $controller->init(); @@ -289,11 +290,11 @@ class Security extends Controller { $customisedController = $controller->customise(array( "Content" => $message, - "Form" => $content + "Form" => $content, )); } else { $customisedController = $controller->customise(array( - "Content" => $content + "Content" => $content, )); }