File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed
Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff 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 );
Original file line number Diff line number Diff 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 );
Original file line number Diff line number Diff 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 );
Original file line number Diff line number Diff 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 );
You can’t perform that action at this time.
0 commit comments