fixed error message about non existing !features slot on newly created accoutns

This commit is contained in:
Hendrik Brummermann 2010-07-22 18:07:14 +00:00
parent 80546f82be
commit cd6c2bdd57

View file

@ -279,8 +279,10 @@ public abstract class UpdateConverter {
}
//port to 0.86: port keymap to feature map, karama_indicator as feature
if (KeyedSlotUtil.getKeyedSlot(object, "!features", "keyring") != null) {
object.put("features", "keyring", "");
if (object.hasSlot("!features")) {
if (KeyedSlotUtil.getKeyedSlot(object, "!features", "keyring") != null) {
object.put("features", "keyring", "");
}
}
if (KeyedSlotUtil.getKeyedSlot(object, "!quests", "learn_karma") != null) {
object.put("features", "karma_indicator", "");