Skip to content

Commit

Permalink
Removing SHOW DATABASES
Browse files Browse the repository at this point in the history
  • Loading branch information
lem9 committed Nov 7, 2013
1 parent a0cc225 commit d5a2bdd
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions libraries/List_Database.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,8 @@ protected function retrieve($like_db_name = null)

if ($GLOBALS['errno'] !== 0) {
// failed! we will display a warning that phpMyAdmin could not
// safely retrieve database list, the admin has to setup a control
// user or allow SHOW DATABASES
// safely retrieve database list, the admin has to setup a
// control user
$GLOBALS['error_showdatabases'] = true;
$this->can_retrieve_databases = false;
}
Expand Down Expand Up @@ -196,9 +196,6 @@ protected function checkOnlyDatabase()
$items = array_merge($items, $this->retrieve($each_only_db));
continue;
}

// @todo induce error, about not using wildcards
// with SHOW DATABASE disabled?
}

$this->exchangeArray($items);
Expand Down

0 comments on commit d5a2bdd

Please sign in to comment.