From 0447f6af98c65032dacf80f28d50f552a1a7f787 Mon Sep 17 00:00:00 2001 From: phamt Date: Tue, 3 Aug 2010 12:45:51 +0000 Subject: [PATCH] Indent if else statement. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6953 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-UI/lib/cmd.php | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/xCAT-UI/lib/cmd.php b/xCAT-UI/lib/cmd.php index 599188661..1ca97f89b 100644 --- a/xCAT-UI/lib/cmd.php +++ b/xCAT-UI/lib/cmd.php @@ -67,12 +67,14 @@ if (isset($_GET["cmd"])) { foreach ($child->children() as $data) { if($data->name) { $node = $data->name; - if($data->data->contents){ - $cont = $data->data->contents; - } - else{ - $cont = $data->data; - } + + if($data->data->contents){ + $cont = $data->data->contents; + } + else{ + $cont = $data->data; + } + $cont = str_replace(":|:", "\n", $cont); array_push($rsp, "$node: $cont"); } else if(strlen("$data") > 2) {