Define $message in all paths
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
This commit is contained in:
parent
9ea91627cf
commit
29bf47e49b
@ -142,6 +142,8 @@ if ($pmaString->strlen($GLOBALS['db'])
|
||||
);
|
||||
$message->addParam($GLOBALS['db']);
|
||||
$message->addParam($_REQUEST['newname']);
|
||||
} else {
|
||||
$message = PMA_Message::error();
|
||||
}
|
||||
$reload = true;
|
||||
|
||||
@ -158,10 +160,6 @@ if ($pmaString->strlen($GLOBALS['db'])
|
||||
$GLOBALS['PMA_Config']->setCookie('pma_switch_to_new', '');
|
||||
}
|
||||
}
|
||||
|
||||
if ($_error && ! isset($message)) {
|
||||
$message = PMA_Message::error();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Loading…
Reference in New Issue
Block a user