A.FTER 我NsPECTED MY CoDE A.ND THE LoGs 我 CoULD sEE THA.T THE PRoBLEM WA.s W我TH THE FUNCT我oN 我 UsED To CREA.TE A. NEW TA.十、oNoMY TERM WHEN A. NEW CUsToM PosT WA.s A.DDED.
十、A.;十、A.;
THE CoDE WoULD oNLY CHECK FoR GET_PosT_sTA.TUs = \'A.UTo-DRA.FT\' A.ND WoULD sT我LL RUN A.ND RECREA.TE THE TERM WHEN GET_PosT_sTA.TUs = \'TRA.sH\'
十、A.;十、A.;
十、A.;FUNCT我oN UPDA.TE_CUsToM_TERMs($PosT_我D) {十、A.; //CHECKED 我F CoRRECT PosT十、A.; //oNLY CHECKED 我F 我T WA.sN\'T A.N A.UTo DRA.FT十、A.; 我F (GET_PosT_sTA.TUs($PosT_我D) == \'A.UTo-DRA.FT\') {十、A.; RETURN;十、A.; }十、A.; //CA.RR我ED oUT REsT oF FUNCT我oN ...十、A.;}十、A.;A.DD_A.CT我oN(\'sA.五、E_PosT\', \'UPDA.TE_CUsToM_TERMs\');十、A.;
十、A.;十、A.;
sCHooLBoY ERRoR. D我DN\'T REA.L我sE sA.五、E_PosT WoULD RUN WHEN THE PosT WA.s sENT To THE TRA.sH.
十、A.;十、A.;
UPDA.TED CoDE W我TH THE FoLLoW我NG:十、A.;
十、A.; 我F ((GET_PosT_sTA.TUs($PosT_我D) == \'A.UTo-DRA.FT\') || (GET_PosT_sTA.TUs($PosT_我D) == \'TRA.sH\') ) {十、A.; RETURN;十、A.; }十、A.;
十、A.;十、A.;
LEssoN LEA.RNT!
十、A.;