]> _ Git - fluidbook-toolbox.git/commitdiff
wait #6822 @0.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 22 Mar 2024 09:28:47 +0000 (10:28 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 22 Mar 2024 09:28:47 +0000 (10:28 +0100)
app/Fluidbook/Compiler/Compiler.php

index 9b0aa93fa92331fb8481ea943b0763c171a28c78..ce22cc82fa06dec418901f5118c3180b8528ce89 100644 (file)
@@ -555,8 +555,8 @@ class Compiler extends Base implements CompilerInterface, IVirtualDirectoryError
 
         // We need to be able to reference both navOrder and navOrderH so convert both to arrays
         // We also make sure there are no empty items in the arrays (see: http://php.net/manual/en/function.array-filter.php#111091)
-        $this->config->navOrder = array_filter(array_map('trim', explode(',', $this->config->navOrder)), 'strlen');
-        $this->config->navOrderH = array_filter(array_map('trim', explode(',', $this->config->navOrderH)), 'strlen');
+        $this->config->navOrder = array_values(array_filter(array_map('trim', explode(',', $this->config->navOrder)), 'strlen'));
+        $this->config->navOrderH = array_values(array_filter(array_map('trim', explode(',', $this->config->navOrderH)), 'strlen'));
 
         $this->config->standalone = $this->standalone;
         if ($this->config->phonegap) {
@@ -1250,7 +1250,6 @@ class Compiler extends Base implements CompilerInterface, IVirtualDirectoryError
     }
 
 
-
     protected function replaceVariables($str)
     {
         $replace = ['%title%' => $this->config->title];