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

@@ -1217,7 +1217,7 @@ switch ($action) {
message('error', 'Empty username while using config authentication method!');
$err = TRUE;
}
if (!empty($new_server['pmadb'])) {
if ( isset($new_server['pmadb']) && strlen($new_server['pmadb'])) {
// Just use defaults, should be okay for most users
$pmadb = array();
$pmadb['bookmarktable'] = 'pma_bookmark';