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