From 1cac48fd10a01cec90a66d9e884904647c50f62f Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Fri, 20 Oct 2023 17:09:29 +0200 Subject: [PATCH] fix warning on orphan page with nav buttons --- core/class/layout.class.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/class/layout.class.php b/core/class/layout.class.php index f70c31d..1256442 100644 --- a/core/class/layout.class.php +++ b/core/class/layout.class.php @@ -1241,7 +1241,9 @@ class layout extends common // Trouver la clé de l'élément recherché $key = array_search($elementToFind, $hierarchy); - + + $previousPage = null; + $nextPage = null; if ($key !== false) { // Trouver l'élément précédent $previousKey = ($key > 0) ? $key - 1 : null;