|
|
@@ -72,7 +72,7 @@ class EditSettingDataProvider extends BaseDataProvider
|
|
|
$this->spfConfig
|
|
|
);
|
|
|
|
|
|
- $dnsRecords['selfdns'] ? $selfDns = 1 : $selfDns = 0;
|
|
|
+ $dnsRecords['selfdns'] ? $selfDns = $dnsRecords['selfdns'] : $selfDns = 0;
|
|
|
$this->mxthurdata = $this->getWhmcsParamByKey('serverhostname');
|
|
|
if(empty($dnsRecords['mx'])){
|
|
|
$mx = 'unset';
|
|
|
@@ -132,7 +132,7 @@ class EditSettingDataProvider extends BaseDataProvider
|
|
|
$this->params
|
|
|
);
|
|
|
return (new HtmlDataJsonResponse())->setMessageAndTranslate('settingHasBeenUpdated')->setStatusSuccess();
|
|
|
-
|
|
|
+
|
|
|
$fieldToProtection = [
|
|
|
'maildomain',
|
|
|
'mxthurdata',
|