diff --git a/db_search.php b/db_search.php index 349f720a3a..9d5d26043f 100644 --- a/db_search.php +++ b/db_search.php @@ -37,7 +37,7 @@ $url_params['goto'] = 'db_search.php'; $db_search = new PMA_DbSearch($GLOBALS['db']); // Display top links if we are not in an Ajax request -if ( $GLOBALS['is_ajax_request'] != true) { +if ($GLOBALS['is_ajax_request'] != true) { include 'libraries/db_info.inc.php'; } diff --git a/db_structure.php b/db_structure.php index 07eaa2d0fc..94ba6cec98 100644 --- a/db_structure.php +++ b/db_structure.php @@ -235,11 +235,12 @@ foreach ($tables as $keyname => $current_table) { * I could have used the PHP ternary conditional operator but I find * the code easier to read without this operator. */ - list($browse_table, $search_table, $browse_table_label, $empty_table, - $tracking_icon) = PMA_getHtmlForActionLinks( - $current_table, $table_is_view, $tbl_url_query, - $titles, $truename, $db_is_system_schema, $url_query - ); + list($browse_table, $search_table, $browse_table_label, + $empty_table, $tracking_icon + ) = PMA_getHtmlForActionLinks( + $current_table, $table_is_view, $tbl_url_query, + $titles, $truename, $db_is_system_schema, $url_query + ); if (! $db_is_system_schema) { list($drop_query, $drop_message) diff --git a/index.php b/index.php index 5fffe11d8d..ae619db03b 100644 --- a/index.php +++ b/index.php @@ -38,9 +38,9 @@ unset($drops, $each_drop); * Such scripts must not be loaded on home page. * */ - $target_blacklist = array ( +$target_blacklist = array ( 'import.php', 'export.php' - ); +); // If we have a valid target, let's load that script instead if (! empty($_REQUEST['target']) diff --git a/libraries/navigation/NavigationTree.class.php b/libraries/navigation/NavigationTree.class.php index 219d96a19f..91009c98e1 100644 --- a/libraries/navigation/NavigationTree.class.php +++ b/libraries/navigation/NavigationTree.class.php @@ -948,7 +948,7 @@ class PMA_NavigationTree if ($node->hasSiblings() || $node->realParent() === false ) { - if ( $node->type == Node::CONTAINER + if ($node->type == Node::CONTAINER && count($node->children) == 0 && $GLOBALS['is_ajax_request'] != true ) { diff --git a/libraries/navigation/Nodes/Node.class.php b/libraries/navigation/Nodes/Node.class.php index b632708287..1bb1f08c09 100644 --- a/libraries/navigation/Nodes/Node.class.php +++ b/libraries/navigation/Nodes/Node.class.php @@ -217,7 +217,7 @@ class Node } $parent = $this->parent; while (isset($parent)) { - if ( ($parent->type != Node::CONTAINER || $containers) + if (($parent->type != Node::CONTAINER || $containers) && ($parent->is_group != true || $groups) ) { $parents[] = $parent; diff --git a/libraries/navigation/Nodes/Node_Database.class.php b/libraries/navigation/Nodes/Node_Database.class.php index 608427d8de..29fd5248de 100644 --- a/libraries/navigation/Nodes/Node_Database.class.php +++ b/libraries/navigation/Nodes/Node_Database.class.php @@ -92,7 +92,7 @@ class Node_Database extends Node /** * Returns the number of tables or views present inside this database * - * @param string $which tables|views + * @param string $which tables|views * @param string $searchClause A string used to filter the results of * the query * @param boolean $singleItem Whether to get presence of a single known @@ -385,7 +385,7 @@ class Node_Database extends Node /** * Returns the list of tables or views inside this database * - * @param string $which tables|views + * @param string $which tables|views * @param int $pos The offset of the list within the results * @param string $searchClause A string used to filter the results of the query * @@ -478,7 +478,7 @@ class Node_Database extends Node /** * Returns the list of procedures or functions inside this database * - * @param string $routineType PROCEDURE|FUNCTION + * @param string $routineType PROCEDURE|FUNCTION * @param int $pos The offset of the list within the results * @param string $searchClause A string used to filter the results of the query * @@ -621,7 +621,7 @@ class Node_Database extends Node $ret = ''; $cfgRelation = PMA_getRelationsParam(); if (isset($cfgRelation['navwork']) && $cfgRelation['navwork']) { - if ( $this->_hiddenCount > 0) { + if ($this->_hiddenCount > 0) { $ret = '' . '