Skip to content

Commit

Permalink
remove global variable
Browse files Browse the repository at this point in the history
  • Loading branch information
thilinaa committed Jul 18, 2012
1 parent 3798141 commit 7245209
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions server_privileges.php
Expand Up @@ -196,9 +196,9 @@
*/
if (isset($_REQUEST['change_copy'])) {
$user_host_condition = ' WHERE `User`'
.' = \'' . $common_functions->sqlAddSlashes($old_username) . "'"
.' = \'' . $common_functions->sqlAddSlashes($_REQUEST['old_username']) . "'"
.' AND `Host`'
.' = \'' . $common_functions->sqlAddSlashes($old_hostname) . '\';';
.' = \'' . $common_functions->sqlAddSlashes($_REQUEST['old_hostname']) . '\';';
$row = PMA_DBI_fetch_single_row('SELECT * FROM `mysql`.`user` ' . $user_host_condition);
if (! $row) {
PMA_Message::notice(__('No user found.'))->display();
Expand Down Expand Up @@ -475,7 +475,7 @@
/**
* Displays the links
*/
if (isset($viewing_mode) && $viewing_mode == 'db') {
if (isset($_REQUEST['viewing_mode']) && $_REQUEST['viewing_mode'] == 'db') {
$_REQUEST['db'] = $_REQUEST['checkprivs'];
$url_query .= '&goto=db_operations.php';

Expand Down

0 comments on commit 7245209

Please sign in to comment.