summaryrefslogtreecommitdiff
path: root/server/core
diff options
context:
space:
mode:
authorstupidon <bhupendra.siyag@gmail.com>2016-03-05 14:12:27 +0100
committerstupidon <bhupendra.siyag@gmail.com>2016-03-05 14:12:27 +0100
commitdad2e1de334b6c8d9e579a0f75272d8661ed2aa3 (patch)
treeab9330bff98f7dc2a193d38926646a6405846c4c /server/core
parentc43e532f766c3f97a34e6fad3dd990f7992e710b (diff)
corrected syntax errors
Diffstat (limited to 'server/core')
-rw-r--r--server/core/Compute.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/core/Compute.php b/server/core/Compute.php
index 8524c86..d134b94 100644
--- a/server/core/Compute.php
+++ b/server/core/Compute.php
@@ -200,9 +200,9 @@ class compute
if(isset($newIpv6){
$attr = array('name' => $newName, 'accessIPv4' => $newIPv4, 'accessIPv6' => $newIpv6);
}
- $attr = array('name' => $newName, 'accessIPv4' => $newIPv4);
+ else $attr = array('name' => $newName, 'accessIPv4' => $newIPv4);
}
- $attr = array('name' => $newName);
+ else $attr = array('name' => $newName);
}
$server->update($attr);
$this->app->setOutput("Success", $serverId." has been updated successfully.");