From 77fcfea6745772d2efe90bcf6c2826fd6afbcbac Mon Sep 17 00:00:00 2001 From: Wayne Date: Wed, 20 Mar 2024 16:45:22 +0800 Subject: [PATCH] bugfix 20240320 --- back/homestay.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } } }