diff --git a/indra/newview/llnotificationofferhandler.cpp b/indra/newview/llnotificationofferhandler.cpp
index c29fdecefaa4d32f562e976f7e6714c0a6d37e98..63ab88da425fb60f729cd3886ba32cce945cce0f 100644
--- a/indra/newview/llnotificationofferhandler.cpp
+++ b/indra/newview/llnotificationofferhandler.cpp
@@ -100,11 +100,11 @@ bool LLOfferHandler::processNotification(const LLNotificationPtr& notification)
 			{
 				//Will not play a notification sound for inventory and teleport offer based upon chat preference
 				bool playSound = (notification->getName() == "UserGiveItem"
-								  && gSavedSettings.getBOOL("PlaySoundInventoryOffer")
+								  && gSavedSettings.getBOOL("PlaySoundInventoryOffer"))
 								 || ((notification->getName() == "TeleportOffered"
 								     || notification->getName() == "TeleportOffered_MaturityExceeded"
 								     || notification->getName() == "TeleportOffered_MaturityBlocked")
-								    && gSavedSettings.getBOOL("PlaySoundTeleportOffer")));
+								    && gSavedSettings.getBOOL("PlaySoundTeleportOffer"));
 
 				if (playSound)
 				{