Nutze korrekte Domain
bernd

bernd commited on 2010-06-03 21:57:14
Zeige 1 geänderte Dateien mit 4 Einfügungen und 2 Löschungen.


git-svn-id: https://svn.schokokeks.org/repos/tools/webinterface/trunk@1744 87cf0b9e-d624-0410-a070-f6ee81989793
... ...
@@ -23,8 +23,9 @@ if ($_POST['target'] == 'new')
23 23
     $domainid = $domain->id;
24 24
     $domainname = $domain->fqdn;
25 25
   }
26
+  DEBUG('Domain: '.$domainid.' / '.$domainname);
26 27
 
27
-  if (! is_array($_POST['options']))
28
+  if (! isset($_POST['options']) || ! is_array($_POST['options']))
28 29
     $_POST['options'] = array();
29 30
   $aliaswww = in_array('aliaswww', $_POST['options']);
30 31
 
... ...
@@ -79,7 +80,8 @@ if ($_POST['target'] == 'new')
79 80
   DEBUG('New options: '.$options);
80 81
 
81 82
   $vhost['hostname'] = $hostname;
82
-  $vhost['domainid'] = $domainid;
83
+  $vhost['domain_id'] = $domainid;
84
+  $vhost['domain'] = $domainname;
83 85
   $vhost['docroot'] = '';
84 86
   $vhost['php'] = 'php53';
85 87
   $vhost['ssl'] = $ssl;
86 88