From 74d95769570a4fde3123741c73a4540ee1ac2334 Mon Sep 17 00:00:00 2001 From: Sven Slootweg Date: Sat, 12 May 2012 02:28:51 +0200 Subject: [PATCH] Fix --- frontend/module.admin.container.suspend.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/module.admin.container.suspend.php b/frontend/module.admin.container.suspend.php index 48f8054..7f2d0b3 100644 --- a/frontend/module.admin.container.suspend.php +++ b/frontend/module.admin.container.suspend.php @@ -19,8 +19,6 @@ try $sContainer = new Container($router->uParameters[1]); - $sSuspended = ($sContainer->sStatus == CVM_STATUS_SUSPENDED) ? true : false; - if(isset($_POST['submit'])) { if($_POST['action'] == "suspend") @@ -41,6 +39,8 @@ try $sContainer->RefreshData(); } + $sSuspended = ($sContainer->sStatus == CVM_STATUS_SUSPENDED) ? true : false; + $sPageContents = Templater::InlineRender("admin.container.suspend", $locale->strings, array( 'id' => $sContainer->sId, 'suspended' => $sSuspended