fix return value usage in write-context

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann (d00p)
2016-01-18 10:51:39 +01:00
parent eef6102088
commit efdb3623e1

View File

@@ -328,8 +328,9 @@ class nginx extends HttpConfigBase {
return ''; return '';
} }
// check whether the customer is deactivated an NO docroot for deactivated users has been set // check whether the customer is deactivated an NO docroot for deactivated users has been set#
if ($domain['deactivated'] == '1' && empty(Settings::Get('system.deactivateddocroot'))) { $ddr = Settings::Get('system.deactivateddocroot');
if ($domain['deactivated'] == '1' && empty($ddr)) {
return '# Customer deactivated and a docroot for deactivated users hasn\'t been set.' . "\n"; return '# Customer deactivated and a docroot for deactivated users hasn\'t been set.' . "\n";
} }