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

@@ -10,6 +10,7 @@ $Source$
libraries/display_tbl.lib.php: Support for exporting selected rows (RFE
#927554) [still missing images/button_export.png, waiting for somebody
to make it :-)].
* libraries/auth/cookie.auth.lib.php: Fix possible undefined variable use.
2004-04-15 Olivier Mueller <om@omnis.ch>
* left.php: RFE #859208, Logout button in left frame

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);