From 8fb8197346475b38a22b29a97b183e66b747ed45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Sun, 27 Nov 2005 21:54:53 +0000 Subject: [PATCH] Fix undefined indexes. --- ChangeLog | 1 + libraries/auth/cookie.auth.lib.php | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 546551ade..26324d895 100755 --- a/ChangeLog +++ b/ChangeLog @@ -10,6 +10,7 @@ $Source$ script. * pdf_schema.php: Do not use right_font_family. * lang/czech: Update. + * libraries/auth/cookie.auth.lib.php: Fix undefined indexes. 2005-11-24 Sebastian Mendel * libraries/grab_globals.lib.php: allow scripts to bypass importing vars diff --git a/libraries/auth/cookie.auth.lib.php b/libraries/auth/cookie.auth.lib.php index 45a251833..d97a40ce3 100644 --- a/libraries/auth/cookie.auth.lib.php +++ b/libraries/auth/cookie.auth.lib.php @@ -464,14 +464,14 @@ function PMA_auth_set_user() // any parameters to pass? $url_params = array(); - if ( ! empty($GLOBALS['target']) ) { + if ( ! empty($GLOBALS['db']) ) { $url_params['db'] = $GLOBALS['db']; } - if ( ! empty($GLOBALS['target']) ) { + if ( ! empty($GLOBALS['table']) ) { $url_params['table'] = $GLOBALS['table']; } // any target to pass? - if ( ! empty($GLOBALS['target']) ) { + if ( ! empty($GLOBALS['target']) && $GLOBALS['target'] != 'index.php' ) { $url_params['target'] = $GLOBALS['target']; }