summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl O. Pinc2012-09-30 19:42:58 +0000
committerJehan-Guillaume (ioguix) de Rorthais2012-09-30 19:42:58 +0000
commit75a202d6c372ca7f3c3a12f52bcd53c57cc085a1 (patch)
tree5f4d198710cdc01e5869b5b2f6d011d88a83fb73
parentd5a3b89f0f1dda9dd10fcdafc6880d7a47120071 (diff)
Fix PHP notice on database privilege page
Schema is not set at database level...By Karl O. Pinc modified by me.
-rw-r--r--privileges.php10
1 files changed, 7 insertions, 3 deletions
diff --git a/privileges.php b/privileges.php
index 23fb4d96..ea7b7f95 100644
--- a/privileges.php
+++ b/privileges.php
@@ -283,10 +283,12 @@
'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 (
@@ -317,13 +319,15 @@
'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());