use user->is_appr() when needed
[brisk.git] / web / commons.js
index 3789e9c..7dcf922 100644 (file)
@@ -1043,12 +1043,14 @@ function user_decorator(user, is_real)
         }
     }
 
-    if (flags != 0)
+    if (flags != 0) {
         name = "<span class='" + cl + "'><span class='" +
         (is_real && (flags & 0xfffffe && ((flags & 0x01) == 0)) ? "id_usr" : "") +
-        "'>"+user[1]+"</span></span>";
-    else
+        "'>" + user[1] + "</span></span>";
+    }
+    else {
         name = user[1];
+    }
 
     return (name);
 }