From 51c4ffc3b61231e8f3a518c6fe7aa021e548921c Mon Sep 17 00:00:00 2001
From: OsaAjani <pierre.lin@free.fr>
Date: Wed, 9 Dec 2015 20:18:31 +0100
Subject: [PATCH] Fix bug js son reception

---
 js/custom.js | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/js/custom.js b/js/custom.js
index edeecda..e282371 100755
--- a/js/custom.js
+++ b/js/custom.js
@@ -56,7 +56,11 @@ function scrollDownDiscussion()
  */
 function playReceptionSound ()
 {
-	jQuery('body').find('#reception-sound')[0].play();
+	var receptionSound = jQuery('body').find('#reception-sound');
+	if (receptionSound)
+	{
+		receptionSound[0].play();
+	}
 }
 
 jQuery(document).ready(function()