diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llpanelavatar.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/linden/indra/newview/llpanelavatar.cpp b/linden/indra/newview/llpanelavatar.cpp index 5b43497..18b8462 100644 --- a/linden/indra/newview/llpanelavatar.cpp +++ b/linden/indra/newview/llpanelavatar.cpp | |||
@@ -1876,16 +1876,13 @@ void LLPanelAvatar::processAvatarPropertiesReply(LLMessageSystem *msg, void**) | |||
1876 | payment_text = "NoPaymentInfoOnFile"; | 1876 | payment_text = "NoPaymentInfoOnFile"; |
1877 | } | 1877 | } |
1878 | args["[PAYMENTINFO]"] = self->mPanelSecondLife->childGetValue(payment_text).asString(); | 1878 | args["[PAYMENTINFO]"] = self->mPanelSecondLife->childGetValue(payment_text).asString(); |
1879 | LLString age_text = "NotAgeVerified"; | 1879 | LLString age_text = age_verified ? "AgeVerified" : "NotAgeVerified"; |
1880 | if(age_verified) | 1880 | args["[AGEVERIFICATION]"] = self->mPanelSecondLife->childGetValue(age_text).asString(); |
1881 | { | ||
1882 | age_text = "AgeVerified"; | ||
1883 | } | ||
1884 | args["[PAYMENTINFO]"] += self->mPanelSecondLife->childGetValue(age_text).asString(); | ||
1885 | } | 1881 | } |
1886 | else | 1882 | else |
1887 | { | 1883 | { |
1888 | args["[PAYMENTINFO]"] = " "; | 1884 | args["[PAYMENTINFO]"] = " "; |
1885 | args["[AGEVERIFICATION]"] = " "; | ||
1889 | } | 1886 | } |
1890 | LLString::format(caption_text, args); | 1887 | LLString::format(caption_text, args); |
1891 | } | 1888 | } |