#444 Notice: Undefined variable: plugins breaks frontpage with strict error reporting

5.1
closed-fixed
None
5
2014-04-17
2014-04-17
Sander Zuidema
No

On hosts with strict PHP error reporting, PgAdmin displays a notice - resulting in a blank page.

Notice: Undefined variable: plugins in /usr/share/webapps/phppgadmin/classes/PluginManager.php on line 37

Warning: Invalid argument supplied for foreach() in /usr/share/webapps/phppgadmin/classes/PluginManager.php on line 37

Proposed fix:

@$plugins = $conf['plugins'];
if(isset($plugins))
foreach ($plugins as $activated_plugin) {

Discussion

  • I just pushed a fix in our git repository.

    Thank for your report!

     
    • status: open --> closed-fixed
    • assigned_to: J.Guillaume (ioguix) de Rorthais