Skip to content

Commit 3de838d

Browse files
author
Till Brehm
committed
- Improved IP address loop.
1 parent 8555470 commit 3de838d

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

install/dist/lib/fedora.lib.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -670,7 +670,7 @@ public function configure_apache()
670670
}
671671
}
672672

673-
$tpl->setLoop('ip_adresses',$ip_addresses);
673+
if(count($ip_addresses) > 0) $tpl->setLoop('ip_adresses',$ip_addresses);
674674

675675
wf($vhost_conf_dir.'/ispconfig.conf', $tpl->grab());
676676
unset($tpl);

install/dist/lib/gentoo.lib.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,7 @@ public function configure_apache()
535535
}
536536
}
537537

538-
$tpl->setLoop('ip_adresses',$ip_addresses);
538+
if(count($ip_addresses) > 0) $tpl->setLoop('ip_adresses',$ip_addresses);
539539

540540
wf($conf['apache']['vhost_conf_dir'].'/000-ispconfig.conf', $tpl->grab());
541541
unset($tpl);

install/dist/lib/opensuse.lib.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -685,7 +685,7 @@ public function configure_apache()
685685
}
686686
}
687687

688-
$tpl->setLoop('ip_adresses',$ip_addresses);
688+
if(count($ip_addresses) > 0) $tpl->setLoop('ip_adresses',$ip_addresses);
689689

690690
wf($vhost_conf_dir.'/ispconfig.conf', $tpl->grab());
691691
unset($tpl);

install/lib/installer_base.lib.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1276,7 +1276,7 @@ public function configure_apache() {
12761276
}
12771277
}
12781278

1279-
$tpl->setLoop('ip_adresses',$ip_addresses);
1279+
if(count($ip_addresses) > 0) $tpl->setLoop('ip_adresses',$ip_addresses);
12801280

12811281
wf($vhost_conf_dir.'/ispconfig.conf', $tpl->grab());
12821282
unset($tpl);

0 commit comments

Comments
 (0)