bugfix 20240320

This commit is contained in:
Wayne 2024-03-20 16:45:22 +08:00
parent f42f397b1a
commit 77fcfea674

View File

@ -217,13 +217,13 @@ if ($_REQUEST['act'] == 'edit') {
if(strlen($cf['cf_iden'])>0){ if(strlen($cf['cf_iden'])>0){
$ret = $cf_obj->update_domain($cf['cf_iden'], trim($sub_domain)); $ret = $cf_obj->update_domain($cf['cf_iden'], trim($sub_domain));
}else{ }else{
$ad_ret = $cf_obj->add_domain(trim($sub_domain)); $ret = $cf_obj->add_domain(trim($sub_domain));
} }
if (!$ret) { if (!$ret) {
sys_msg('網域自動修改失敗,請重新操作',1, array(), false); sys_msg('網域自動修改失敗,請重新操作',1, array(), false);
// $cf_iden = 0; // $cf_iden = 0;
} else { } else {
$cf_iden = $ad_ret; $cf_iden = $ret;
} }
} }
} }