]> _ Git - cubeextranet.git/commitdiff
wip #5934
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Mon, 22 May 2023 10:20:32 +0000 (10:20 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Mon, 22 May 2023 10:20:32 +0000 (10:20 +0000)
inc/ws/Util/html5/master/class.ws.html5.compiler.php

index b0f54e57acee62863e23cda158e4303023386bee..ed95ca3916ff1898f7793d87dc3ec095966ea547 100644 (file)
@@ -1488,7 +1488,7 @@ height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
 
     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');