From: Vincent Vanwaelscappel Date: Wed, 8 Mar 2023 16:59:58 +0000 (+0100) Subject: wait #5793 @0:05 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=8f7172fc671e2b4a20add8f36409a4afca4e0d4d;p=fluidbook-toolbox.git wait #5793 @0:05 --- diff --git a/app/Jobs/FluidbookCompiler.php b/app/Jobs/FluidbookCompiler.php index d5199c164..020acd1dc 100644 --- a/app/Jobs/FluidbookCompiler.php +++ b/app/Jobs/FluidbookCompiler.php @@ -1529,7 +1529,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; } } }