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:
authorMichal Čihař <michal@cihar.com>2017-10-10 13:28:00 +0300
committerMichal Čihař <michal@cihar.com>2017-10-10 13:28:00 +0300
commit98964e2f59a010f288000b2fed5ee5b620b6a211 (patch)
tree5b8beda2c87c74bb75b04e3373936bd39ea5b94e /sql.php
parent9c9c22e5167ef54a565209736fe33f60904082ba (diff)
Remove is_superuser superglobal
Issue #11731 Signed-off-by: Michal Čihař <michal@cihar.com>
Diffstat (limited to 'sql.php')
-rw-r--r--sql.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql.php b/sql.php
index c441b7d81c..d9edaa4980 100644
--- a/sql.php
+++ b/sql.php
@@ -152,7 +152,7 @@ if ($table != $table_from_sql && !empty($table_from_sql)) {
* into account this case.
*/
if (Sql::hasNoRightsToDropDatabase(
- $analyzed_sql_results, $cfg['AllowUserDropDatabase'], $is_superuser
+ $analyzed_sql_results, $cfg['AllowUserDropDatabase'], $GLOBALS['dbi']->isSuperuser()
)) {
Util::mysqlDie(
__('"DROP DATABASE" statements are disabled.'),