Fix PHP notice on database privilege page
authorKarl O. Pinc <kop@meme.com>
Sun, 30 Sep 2012 19:42:58 +0000 (21:42 +0200)
committerJehan-Guillaume (ioguix) de Rorthais <ioguix@free.fr>
Sun, 30 Sep 2012 19:42:58 +0000 (21:42 +0200)
Schema is not set at database level...By Karl O. Pinc modified by me.

privileges.php

index 23fb4d967189a9fbbb72207e6074e27a3c1e30f9..ea7b7f959b9bd220d46fa117c03f49e1d8016b72 100644 (file)
                                'action' => 'alter',
                                'server' => $_REQUEST['server'],
                                'database' => $_REQUEST['database'],
-                               'schema' => $_REQUEST['schema'],
                                $subject => $object,
                                'subject'=> $subject
                        );
+                       if (isset($_REQUEST['schema'])) {
+                               $urlvars['schema'] = $_REQUEST['schema'];
+                       }
                }
 
                $navlinks = array (
                                                'url' => $allurl,
                                                'urlvars' => array (
                                                        'server' => $_REQUEST['server'],
-                                                       'database' => $_REQUEST['database'],
-                                                       'schema' => $_REQUEST['schema']
+                                                       'database' => $_REQUEST['database']
                                                )
                                        )
                                ),
                                'content' => $alltxt
                        );
+                       if (isset($_REQUEST['schema'])) {
+                               $navlinks[$alllabel]['attr']['href']['urlvars']['schema'] = $_REQUEST['schema'];
+                       }
                }
 
                $misc->printNavLinks($navlinks, 'privileges-privileges', get_defined_vars());