Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

fix for icq+jabber icons see http://www.yacy-forum.de/viewtopic.php?p=20533#20533

orbiterf9c953481ac6
diff --git a/htroot/ViewProfile.java b/htroot/ViewProfile.java
index 14b3b5eb2..4c6bfd079 100644
--- a/htroot/ViewProfile.java
+++ b/htroot/ViewProfile.java
@@ -167,11 +167,11 @@ public class ViewProfile {
}
//all known Keys which should be set as they are
- if (knownKeys.contains(key)) {
+ if ((knownKeys.contains(key)) && (value.length() > 0)) {
prop.put("success_" + key, 1);
prop.put("success_" + key + "_value", value);
//special handling, hide flower if no icq uin is set
- } else if (key.equals("homepage")) {
+ } else if ((key.equals("homepage")) && (value.length() > 0)) {
if (!(value.startsWith("http"))) {
value = "http://" + value;
}