diff --git a/indra/newview/llchathistory.cpp b/indra/newview/llchathistory.cpp
index dd25a22816566246ef0afeb8e016127fbcd21829..d5c1663df6a447305af1b07463565ca62a11f6da 100644
--- a/indra/newview/llchathistory.cpp
+++ b/indra/newview/llchathistory.cpp
@@ -476,7 +476,7 @@ class LLChatHistoryHeader: public LLPanel
 		{
 			return LLMuteList::getInstance()->isMuted(getAvatarId(), LLMute::flagVoiceChat);
 		}
-		if (level == "is_muted")
+		else if (level == "is_muted")
 		{
 			return LLMuteList::getInstance()->isMuted(getAvatarId(), LLMute::flagTextChat);
 		}