Skip to content

Commit

Permalink
remove php notices
Browse files Browse the repository at this point in the history
  • Loading branch information
thilinaa committed Aug 18, 2012
1 parent 995e9fd commit f49c9d8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions server_privileges.php
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,9 @@
$_add_user_error = true;
} else {
list($create_user_real, $create_user_show, $real_sql_query, $sql_query)
= PMA_getSqlQueriesForDisplayAndAddUser($username, $hostname, $password);
= PMA_getSqlQueriesForDisplayAndAddUser(
$username, $hostname, (isset ($password) ? $password : '')
);

if (empty($_REQUEST['change_copy'])) {
$_error = false;
Expand Down Expand Up @@ -479,7 +481,7 @@
} elseif (isset($_REQUEST['adduser'])) {
// Add user
$response->addHTML(
PMA_getHtmlForAddUser($random_n, $dbname)
PMA_getHtmlForAddUser($random_n, (isset($dbename) ? $dbname : ''))
);
} else {
// check the privileges for a particular database.
Expand Down

0 comments on commit f49c9d8

Please sign in to comment.