Browse Source

editsettingsform

andre 5 months ago
parent
commit
12d6724b8d
1 changed files with 2 additions and 2 deletions
  1. 2 2
      app/UI/Client/Setting/Providers/EditSettingDataProvider.php

+ 2 - 2
app/UI/Client/Setting/Providers/EditSettingDataProvider.php

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