Browse code

Warnung bei vhost anlegen vermeiden.

Hanno authored on 07/11/2018 17:50:22
Showing 1 changed files
... ...
@@ -522,7 +522,7 @@ function save_vhost($vhost)
522 522
         unset($args[":id"]);
523 523
         logger(LOG_INFO, 'modules/vhosts/include/vhosts', 'vhosts', 'Creating vhost '.$vhost['hostname'].'.'.$vhost['domain'].'');
524 524
         $result = db_query("INSERT INTO vhosts.vhost (user, hostname, domain, docroot, php, cgi, `ssl`, hsts, `suexec_user`, `server`, logtype, errorlog, certid, ipv4, autoipv6, options, stats) VALUES ".
525
-                       "(:user, :hostname, :domain, :docroot, :php, :cgi, :ssl, :hsts, :suexec_user, :server, :logtype, :errorlog, :cert, :ipv4, :autoipv6, :options, :stats)", $args);
525
+                       "(:user, :hostname, :domain, :docroot, :php, :cgi, :ssl, :hsts, :suexec_user, :server, :logtype, :errorlog, :cert, :ipv4, :autoipv6, :options, :stats)", $args, true);
526 526
         $id = db_insert_id();
527 527
     }
528 528
     $oldvhost = get_vhost_details($id);