Skip to content
Browse files

Fix PHP notice on database privilege page

Schema is not set at database level...By Karl O. Pinc modified by me.
  • Loading branch information...
1 parent d5a3b89 commit 75a202d6c372ca7f3c3a12f52bcd53c57cc085a1 @kpinc kpinc committed with ioguix Sep 30, 2012
Showing with 7 additions and 3 deletions.
  1. +7 −3 privileges.php
View
10 privileges.php
@@ -283,10 +283,12 @@ function doDefault($msg = '') {
'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 @@ function doDefault($msg = '') {
'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());

0 comments on commit 75a202d

Please sign in to comment.
Something went wrong with that request. Please try again.