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

5.1
closed-fixed
None
5
2014-04-17
2014-04-17
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

  • J.Guillaume (ioguix) de Rorthais

    I just pushed a fix in our git repository.

    Thank for your report!

     
  • J.Guillaume (ioguix) de Rorthais

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

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks