allow 0 as name for database, table collumn, alias and index

This commit is contained in:
Sebastian Mendel
2006-01-14 23:17:17 +00:00
parent f298dca837
commit 7358f5a712
36 changed files with 195 additions and 182 deletions

View File

@@ -75,7 +75,7 @@ if (isset($drop_selected_dbs_x)) {
}
if ((!empty($drop_selected_dbs) || isset($query_type)) && ($is_superuser || $cfg['AllowUserDropDatabase'])) {
if (empty($selected_db) && ! (isset($query_type) && !empty($selected))) {
if ((! isset($selected_db) || ! strlen($selected_db)) && ! (isset($query_type) && !empty($selected))) {
$message = $strNoDatabasesSelected;
} else {
$action = 'server_databases.php';