return correct default redirectCode when none is set, thx to J-BBB

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann (d00p)
2017-01-05 11:58:11 +01:00
parent 78ee141b26
commit 1ebde2e6a4

View File

@@ -77,7 +77,7 @@ function getDomainRedirectCode($domainid = 0, $default = '') {
if (is_array($result) if (is_array($result)
&& isset($result['redirect']) && isset($result['redirect'])
) { ) {
$code = ($result['redirect'] == '---') ? '' : $result['redirect']; $code = ($result['redirect'] == '---') ? $default : $result['redirect'];
} }
} }
return $code; return $code;