Skip to content

Commit d31e908

Browse files
committed
Fixed a bug in the installer.
1 parent 082cf78 commit d31e908

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

install/lib/installer_base.lib.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -807,7 +807,7 @@ public function configure_apache()
807807

808808
$content = rf("tpl/apache_ispconfig.conf.master");
809809
$records = $this->db->queryAllRecords("SELECT * FROM server_ip WHERE server_id = ".$conf["server_id"]." AND virtualhost = 'y'");
810-
if(count($records) > 0) {
810+
if(is_array($records) && count($records) > 0) {
811811
foreach($records as $rec) {
812812
$content .= "NameVirtualHost ".$rec["ip_address"].":80\n";
813813
$content .= "NameVirtualHost ".$rec["ip_address"].":443\n";

0 commit comments

Comments
 (0)