Skip to content

Commit

Permalink
Return the correct db name
Browse files Browse the repository at this point in the history
  • Loading branch information
lem9 committed Jul 27, 2013
1 parent 5dd6e4d commit ea65829
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/sql.lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function PMA_getNewDatabase($sql, $databases)
// loop through all the databases
foreach ($databases as $database) {
if (strpos($sql, $database['SCHEMA_NAME']) !== false) {
$db = $database;
$db = $database['SCHEMA_NAME'];
break;
}
}
Expand Down

0 comments on commit ea65829

Please sign in to comment.