diff --git a/libraries/classes/Server/Privileges.php b/libraries/classes/Server/Privileges.php index d0a9a4f756..f447cbc371 100644 --- a/libraries/classes/Server/Privileges.php +++ b/libraries/classes/Server/Privileges.php @@ -1501,60 +1501,19 @@ class Privileges * * @return string */ - public function getHtmlForSpecificDbPrivileges($db) + public function getHtmlForSpecificDbPrivileges(string $db): string { - $html_output = ''; + global $cfg, $pmaThemeImage, $text_dir, $is_createuser; + $scriptName = Util::getScriptNameForOption( + $cfg['DefaultTabDatabase'], + 'database' + ); + + $tableBody = ''; if ($this->dbi->isSuperuser()) { - // check the privileges for a particular database. - $html_output = '