fix fallback redirect code when customredirect is enabled and default is selected

Signed-off-by: Michael Kaufmann <michael.kaufmann@aixit.com>
This commit is contained in:
Michael Kaufmann
2018-05-24 17:44:36 +02:00
parent 18fb422a69
commit 10330f8a7a

View File

@@ -72,7 +72,8 @@ function getDomainRedirectCode($domainid = 0) {
$default = '301';
if (Settings::Get('customredirect.enabled') == '1') {
$all_codes = getRedirectCodes(false);
$default = $all_codes[Settings::Get('customredirect.default')];
$_default = $all_codes[Settings::Get('customredirect.default')];
$default = ($_default == '---') ? $default : $_default;
}
$code = $default;
if ($domainid > 0) {