Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Delisle <marc@infomarc.info>2006-07-27 00:41:59 +0400
committerMarc Delisle <marc@infomarc.info>2006-07-27 00:41:59 +0400
commit7e6b238fb9aed57b7ff47ebdfc6d071cebfd5563 (patch)
treefd75791f537b5dce47e8809fc2e38958ac8e9efc /server_privileges.php
parent3d4beef67bf44c17499430f9d61d89009ed69ac3 (diff)
bug #1526557, display error when admin lacks some privileges and tries to do a privilege change
Diffstat (limited to 'server_privileges.php')
-rw-r--r--server_privileges.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/server_privileges.php b/server_privileges.php
index aa887c76b0..cdc36eb501 100644
--- a/server_privileges.php
+++ b/server_privileges.php
@@ -1022,6 +1022,10 @@ if (!empty($update_privs)) {
}
$sql_query2 .= ';';
if (!PMA_DBI_try_query($sql_query0)) { // this query may fail, but this does not matter :o)
+ // a case when it can fail is when the admin does not have all
+ // privileges: he can't do a REVOKE ALL PRIVILEGES !
+ // so at least we display the error
+ echo PMA_DBI_getError();
unset($sql_query0);
}
if (isset($sql_query1) && !PMA_DBI_try_query($sql_query1)) { // this one may fail, too...