From a80b1e7b4b6256bdfb08d9e38637d1fd3d01bdd8 Mon Sep 17 00:00:00 2001 From: "vincent@cubedesigners.com" Date: Mon, 22 May 2023 10:20:32 +0000 Subject: [PATCH] wip #5934 --- inc/ws/Util/html5/master/class.ws.html5.compiler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/ws/Util/html5/master/class.ws.html5.compiler.php b/inc/ws/Util/html5/master/class.ws.html5.compiler.php index b0f54e57a..ed95ca391 100644 --- a/inc/ws/Util/html5/master/class.ws.html5.compiler.php +++ b/inc/ws/Util/html5/master/class.ws.html5.compiler.php @@ -1488,7 +1488,7 @@ height="0" width="0" style="display:none;visibility:hidden"> protected function writeSounds() { - if ($this->book->parametres->soundTheme == '') { + if (!$this->book->parametres->soundTheme || $this->book->parametres->soundTheme === 'none') { return; } $this->config->simpleSoundTheme = file_exists(WS_SOUNDS . '/' . $this->book->parametres->soundTheme . '/flip.mp3'); -- 2.39.5