From: vincent@cubedesigners.com Date: Mon, 22 May 2023 10:20:32 +0000 (+0000) Subject: wip #5934 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=a80b1e7b4b6256bdfb08d9e38637d1fd3d01bdd8;p=cubeextranet.git wip #5934 --- 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');