We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 082cf78 commit d31e908Copy full SHA for d31e908
install/lib/installer_base.lib.php
@@ -807,7 +807,7 @@ public function configure_apache()
807
808
$content = rf("tpl/apache_ispconfig.conf.master");
809
$records = $this->db->queryAllRecords("SELECT * FROM server_ip WHERE server_id = ".$conf["server_id"]." AND virtualhost = 'y'");
810
- if(count($records) > 0) {
+ if(is_array($records) && count($records) > 0) {
811
foreach($records as $rec) {
812
$content .= "NameVirtualHost ".$rec["ip_address"].":80\n";
813
$content .= "NameVirtualHost ".$rec["ip_address"].":443\n";
0 commit comments