Skip to content

Commit ad14580

Browse files
authored
[5.3] undefined array key in table\nested.php (joomla#45176)
1 parent 99365b3 commit ad14580

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/src/Table/Nested.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1317,7 +1317,7 @@ public function rebuildPath($pk = null)
13171317
$segments = $this->_db->loadColumn();
13181318

13191319
// Make sure to remove the root path if it exists in the list.
1320-
if ($segments[0] === 'root') {
1320+
if (!empty($segments) && $segments[0] === 'root') {
13211321
array_shift($segments);
13221322
}
13231323

0 commit comments

Comments
 (0)