[phpMyAdmin Developers] problem with StructureController
jason.daurus at gmail.com
Fri Aug 7 04:16:23 CEST 2015
I noticed this problem, and it cause by incorrect scope of the variable.
The $pmaImageTheme is a global variable, which means it can be access
globally. But in this case the mult_submits.inc.php was included in the
scope of StructureController, where the script can’t access global
variables correctly. After declaring global of the $pmaImageTheme in the
mult_submits.inc.php, the problem should be fixed.
On Thu, Aug 6, 2015 at 4:40 AM Marc Delisle <marc at infomarc.info> wrote:
> Hi Jason,
> I could not find the exact commit, but it seems that the introduction of
> StructureController caused a problem.
> To reproduce, display the structure of a database, tick the checkbox for
> one of the tables, and in the drop-down "With selected" menu, try to
> optimize this table.
> Notice in ./libraries/mult_submits.inc.php#254
> Undefined variable: pmaThemeImage
> ./db_structure.php#45: PMA\Controllers\StructureController->indexAction()
> Marc Delisle | phpMyAdmin
> Developers mailing list
> Developers at phpmyadmin.net
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Developers