diff --git a/libraries/navigation/NavigationTree.class.php b/libraries/navigation/NavigationTree.class.php index 025657afe1..de7da47925 100644 --- a/libraries/navigation/NavigationTree.class.php +++ b/libraries/navigation/NavigationTree.class.php @@ -799,12 +799,13 @@ class PMA_NavigationTree /** * Finds whether given tree matches this tree. * + * @param array $paths Paths to check * @param array $tree Tree to check * @param string $attribute Attribute to walk * * @return boolean */ - private function _findTreeMatch($tree, $attribute) + private function _findTreeMatch($paths, $tree, $attribute) { $match = true; foreach ($tree as $path) { @@ -875,8 +876,8 @@ class PMA_NavigationTree $retval .= ""; } - $match = $this->_findTreeMatch($this->_aPath, 'aPath_clean'); - $match |= $this->_findTreeMatch($this->_vPath, 'vPath_clean'); + $match = $this->_findTreeMatch($paths, $this->_aPath, 'aPath_clean'); + $match |= $this->_findTreeMatch($paths, $this->_vPath, 'vPath_clean'); $retval .= '