From 8f7172fc671e2b4a20add8f36409a4afca4e0d4d Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Wed, 8 Mar 2023 17:59:58 +0100 Subject: [PATCH] wait #5793 @0:05 --- app/Jobs/FluidbookCompiler.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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; } } } -- 2.39.5