fix nginx configs-generation when setting is 'one file', thx to pcdummy

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann (d00p)
2014-01-17 11:12:37 +01:00
parent 52536e0e45
commit 00a0a4337e

View File

@@ -261,7 +261,7 @@ class nginx {
$this->nginx_data[$vhost_filename] = '';
}
if ((!empty($this->nginx_data[$vhost_filename])
if ((empty($this->nginx_data[$vhost_filename])
&& !is_dir(Settings::Get('system.apacheconf_vhost')))
|| is_dir(Settings::Get('system.apacheconf_vhost'))
) {