From b4c0b24cdc4dc350d4eeff60260d2200d2cf561b Mon Sep 17 00:00:00 2001 From: "vincent@cubedesigners.com" Date: Wed, 8 Mar 2023 16:58:47 +0000 Subject: [PATCH] wait #5793 @0.25 --- inc/ws/Util/html5/master/class.ws.html5.compiler.php | 6 +++++- 1 file changed, 5 insertions(+), 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 ec9fc9076..8d5113abf 100644 --- a/inc/ws/Util/html5/master/class.ws.html5.compiler.php +++ b/inc/ws/Util/html5/master/class.ws.html5.compiler.php @@ -1497,7 +1497,11 @@ height="0" width="0" style="display:none;visibility:hidden"> if ($page == '' || $text == '') { continue; } - $this->audioDescriptionTextsList[$page] = ['text' => $text, 'voice' => $voice]; + $data=['text' => $text]; + if($voice){ + $data['voice']=$voice; + } + $this->audioDescriptionTextsList[$page] = $data; } } } -- 2.39.5