We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e3ffc77 commit 6c8f42eCopy full SHA for 6c8f42e
1 file changed
modules/servers/upCloudVps/lib/vmManager.php
@@ -62,7 +62,7 @@ public function create(){
62
$OsUUID = $this->params['configoptions']['template'] ?? $this->params['configoption3'];
63
$sshkey = $this->params['customfields']['ssh_key'];
64
$user_data = $this->params['customfields']['userData'];
65
- $Hostname = $this->params['domain'] ?? 'client' . $this->params['serviceid'] . '.' . $_SERVER['SERVER_NAME'];
+ $Hostname = !empty($this->params['domain']) ? $this->params['domain'] : 'client' . $this->params['serviceid'] . '.' . $_SERVER['SERVER_NAME'];
66
$sshkey = empty($sshkey) ? "na" : $sshkey;
67
$user_data = empty($user_data) ? "na" : $user_data;
68
$backup = $this->params['configoptions']['backup'];
0 commit comments