]> _ Git - fluidbook-toolbox.git/commitdiff
wait #5793 @0:05
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 8 Mar 2023 16:59:58 +0000 (17:59 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 8 Mar 2023 16:59:58 +0000 (17:59 +0100)
app/Jobs/FluidbookCompiler.php

index d5199c164baaf0ff82ce0dbd0081b6f832956038..020acd1dcb3818435a8bd9ff41eb78b03b6cec9e 100644 (file)
@@ -1529,7 +1529,11 @@ height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
                     if ($page == '' || $text == '') {
                         continue;
                     }
-                    $this->audioDescriptionTextsList[$page] = ['text' => $text, 'voice' => $voice];
+                    $data = ['text' => $text];
+                    if ($voice) {
+                        $data['voice'] = $voice;
+                    }
+                    $this->audioDescriptionTextsList[$page] = $data;
                 }
             }
         }