Browse code

Bei Aliasnamen darf kein leerer Hostname eingetragen werden

Bernd Wurst authored on 27/02/2014 09:00:25
Showing 1 changed files
... ...
@@ -442,6 +442,9 @@ function save_alias($alias)
442 442
   if ($alias['domain_id'] == -1)
443 443
     $domain = NULL;
444 444
   $vhost = get_vhost_details( (int) $alias['vhost']);
445
+  if (! $alias['hostname']) {
446
+    $alias['hostname'] = NULL;
447
+  }
445 448
   $args = array(":hostname" => $alias['hostname'],
446 449
                 ":domain" => $domain,
447 450
                 ":vhost" => $vhost['id'],