From c5e2d244bb72392ebb5e1cffabd4881a55e80c33 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Fri, 22 Mar 2024 10:28:47 +0100 Subject: [PATCH] wait #6822 @0.5 --- app/Fluidbook/Compiler/Compiler.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/Fluidbook/Compiler/Compiler.php b/app/Fluidbook/Compiler/Compiler.php index 9b0aa93fa..ce22cc82f 100644 --- a/app/Fluidbook/Compiler/Compiler.php +++ b/app/Fluidbook/Compiler/Compiler.php @@ -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]; -- 2.39.5