From d6e005745ae85e654c79f9f6c69d48756ddaab6d Mon Sep 17 00:00:00 2001 From: BrianTeeman Date: Thu, 20 Mar 2025 23:18:20 +0000 Subject: [PATCH] [5.3] undefined array key in table\nested.php Signed-off-by: BrianTeeman --- libraries/src/Table/Nested.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/src/Table/Nested.php b/libraries/src/Table/Nested.php index 858a9cb5858e..962f61851ea0 100644 --- a/libraries/src/Table/Nested.php +++ b/libraries/src/Table/Nested.php @@ -1317,7 +1317,7 @@ public function rebuildPath($pk = null) $segments = $this->_db->loadColumn(); // Make sure to remove the root path if it exists in the list. - if ($segments[0] === 'root') { + if (!empty($segments) && $segments[0] === 'root') { array_shift($segments); }