[Phpmyadmin-devel] proposed patch for session problem

Marc Delisle Marc.Delisle at cegepsherbrooke.qc.ca
Mon Aug 21 19:31:41 CEST 2006


Hi,

Please comment on this patch which fixes (at least on my server) the 
problem of going from the main PMA script to scripts/setup.php and back. 
I noticed that "source" was empty when I have this problem.

Patch is against MAINT_2_8_2.

Index: common.lib.php
===================================================================
RCS file: /cvsroot/phpmyadmin/phpMyAdmin/libraries/common.lib.php,v
retrieving revision 2.266.2.27.2.2
diff -c -r2.266.2.27.2.2 common.lib.php
*** common.lib.php      21 Aug 2006 11:45:16 -0000      2.266.2.27.2.2
--- common.lib.php      21 Aug 2006 17:28:19 -0000
***************
*** 2991,2997 ****
 
/******************************************************************************/
   /* parsing config file 
LABEL_parsing_config_file      */

! if (empty($_SESSION['PMA_Config'])) {
       /**
        * We really need this one!
        */
--- 2991,2998 ----
 
/******************************************************************************/
   /* parsing config file 
LABEL_parsing_config_file      */

! //if (empty($_SESSION['PMA_Config'])) {
!     if (empty($_SESSION['PMA_Config']) || 
empty($_SESSION['PMA_Config']->source )) {
       /**
        * We really need this one!
        */




More information about the Developers mailing list