From 58c0da7e87db54be5d3c1efe7c4972fd9926e8cc Mon Sep 17 00:00:00 2001 From: Pierre Goiffon Date: Mon, 13 Feb 2023 17:09:24 +0100 Subject: [PATCH] =?UTF-8?q?N=C2=B02783=20Fix=20setup=20crashing=20because?= =?UTF-8?q?=20of=20a=20php=20warning=20(#389)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- setup/compiler.class.inc.php | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/setup/compiler.class.inc.php b/setup/compiler.class.inc.php index 4cabc169f..9a51ebfba 100644 --- a/setup/compiler.class.inc.php +++ b/setup/compiler.class.inc.php @@ -659,18 +659,20 @@ EOF; } // foreach module // Register custom zlists - $this->sMainPHPCode .= <<aCustomListsCodes)) { + $this->sMainPHPCode .= <<aCustomListsCodes as $sCustomListCode) { - // Note: HEREDOC used to ease finding of \MetaModel::RegisterZList() method usages - $this->sMainPHPCode .= <<aCustomListsCodes as $sCustomListCode) { + // Note: HEREDOC used to ease finding of \MetaModel::RegisterZList() method usages + $this->sMainPHPCode .= << 'Custom zlist $sCustomListCode', 'type' => 'attributes']); PHP; + } + $this->sMainPHPCode .= "\n"; } - $this->sMainPHPCode .= "\n"; // Compile the dictionaries -out of the modules //