"UseModWiki소스수정/관심있는페이지" 페이지의 변경 내역| -202,8 +202,8 |
| for ($i= 1001; ; ++$i) { |
| $fname = &UserDataFilename($i); |
| ($status, $data) = &ReadFile($fname); |
| %UserData = split(/$FS1/, $data, -1); |
| ($status, $data) = &ReadFile($fname); # (1) see to the end of bucle |
| %UserData = split(/$FS1/, $data, -1); # (2) see to the end of bucle |
| last unless scalar %UserData; |
| if ($UserData{'interest'}) { |
| %UserInterest = split(/$FS2/, $UserData{'interest'}, -1); |
| -218,8 +218,10 |
| } |
| } |
| } |
| # (1) and (2) yield effect as updating some user-parameters, the next line does updating again true values (without refresh page) |
| &LoadUserData($UserID); |
| </pre></tt> |
| In turn, as you can observe, it can appear an "edit conflict". An admin user can be trying to modify his/her preferences and actions system (delete and rename $UserData{'interest'}) be on modifying userfiles ... --JuanmaMP |
| Thank you :-) <mysign([[Raymundo]],2012-8-6 5:45 pm)> |