Skip to content

Commit

Permalink
Fix PHP notice on database privilege page
Browse files Browse the repository at this point in the history
Schema is not set at database level...By Karl O. Pinc modified by me.
  • Loading branch information
Karl O. Pinc authored and ioguix committed Sep 30, 2012
1 parent d5a3b89 commit 75a202d
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions privileges.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down Expand Up @@ -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());
Expand Down

0 comments on commit 75a202d

Please sign in to comment.