From 394695f8170a600153fc8252b49e5a2eb37cfc5d Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Tue, 13 Jan 2026 16:20:40 +0100 Subject: [PATCH] wait #7939 @0.5 --- app/Fluidbook/Compiler/Compiler.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/Fluidbook/Compiler/Compiler.php b/app/Fluidbook/Compiler/Compiler.php index 9a979fd66..26cbac9b0 100644 --- a/app/Fluidbook/Compiler/Compiler.php +++ b/app/Fluidbook/Compiler/Compiler.php @@ -1271,7 +1271,6 @@ class Compiler extends Base implements CompilerInterface, IVirtualDirectoryError public function addContentLock($page, $unlockConditions = '') { - $this->config->hasContentLock = true; $unlockConditions = Text::explodeNewLines($unlockConditions); $conditions = []; foreach ($unlockConditions as $unlockCondition) { @@ -1281,6 +1280,11 @@ class Compiler extends Base implements CompilerInterface, IVirtualDirectoryError } $conditions[] = $e; } + + if(!$conditions){ + return; + } + $this->config->hasContentLock = true; $page = max(1, $page); if (!isset($this->content_lock[$page])) { $this->content_lock[$page] = ['page' => $page, 'unlocked' => 0, 'conditions' => []]; -- 2.39.5