Merge pull request #766 from slimtim/bug_4159
Prevent fatal PHP error when filtering tables in the navigation tree
This commit is contained in:
commit
444068ad36
@ -692,11 +692,14 @@ class PMA_NavigationTree
|
||||
}
|
||||
|
||||
if (! empty($this->_searchClause) || ! empty($this->_searchClause2)) {
|
||||
$results = 0;
|
||||
if (! empty($this->_searchClause2)) {
|
||||
$results = $node->realParent()->getPresence(
|
||||
$node->real_name,
|
||||
$this->_searchClause2
|
||||
);
|
||||
if (is_object($node->realParent())) {
|
||||
$results = $node->realParent()->getPresence(
|
||||
$node->real_name,
|
||||
$this->_searchClause2
|
||||
);
|
||||
}
|
||||
} else {
|
||||
$results = $this->_tree->getPresence(
|
||||
'databases',
|
||||
|
||||
Loading…
Reference in New Issue
Block a user