Browse code

fix usersubdomain / -2

Hanno authored on13/03/2019 10:48:31
Showing1 changed files
... ...
@@ -308,6 +308,9 @@ if ($_GET['action'] == 'edit') {
308 308
         $domainname = $domain->fqdn;
309 309
         $hostname = $hostname.'.'.$_SESSION['userinfo']['username'];
310 310
         $hostname = trim($hostname, " .-");
311
+    } elseif ($domain_id == -2) {
312
+        # use system masterdomain
313
+        $domainname = $_SESSION['userinfo']['username'].".".config('masterdomain');
311 314
     }
312 315
 
313 316
     if (! is_array($_POST['options'])) {