Skip to content
Snippets Groups Projects
Commit d31e9087 authored by tbrehm's avatar tbrehm
Browse files

Fixed a bug in the installer.

parent 082cf784
No related branches found
No related tags found
No related merge requests found
...@@ -807,7 +807,7 @@ class installer_base { ...@@ -807,7 +807,7 @@ class installer_base {
$content = rf("tpl/apache_ispconfig.conf.master"); $content = rf("tpl/apache_ispconfig.conf.master");
$records = $this->db->queryAllRecords("SELECT * FROM server_ip WHERE server_id = ".$conf["server_id"]." AND virtualhost = 'y'"); $records = $this->db->queryAllRecords("SELECT * FROM server_ip WHERE server_id = ".$conf["server_id"]." AND virtualhost = 'y'");
if(count($records) > 0) { if(is_array($records) && count($records) > 0) {
foreach($records as $rec) { foreach($records as $rec) {
$content .= "NameVirtualHost ".$rec["ip_address"].":80\n"; $content .= "NameVirtualHost ".$rec["ip_address"].":80\n";
$content .= "NameVirtualHost ".$rec["ip_address"].":443\n"; $content .= "NameVirtualHost ".$rec["ip_address"].":443\n";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment