Fix possible undefined variable use.

This commit is contained in:
Michal Čihař
2004-04-15 16:19:14 +00:00
parent 34b8c3217e
commit 519e32afbe
2 changed files with 2 additions and 1 deletions

View File

@@ -154,7 +154,7 @@ function PMA_auth()
else if (!empty($_COOKIE) && isset($_COOKIE['pma_cookie_username'])) {
$default_user = $_COOKIE['pma_cookie_username'];
}
$decrypted_user = PMA_blowfish_decrypt($default_user, $GLOBALS['cfg']['blowfish_secret']);
$decrypted_user = isset($default_user) ? PMA_blowfish_decrypt($default_user, $GLOBALS['cfg']['blowfish_secret']) : '';
$pos = strrpos($decrypted_user, ':');
$default_user = substr($decrypted_user, 0, $pos);