No need to require_once footer
It is the last thing executed anyway (ends with exit).
This commit is contained in:
@@ -110,7 +110,7 @@ if (!$is_superuser) {
|
||||
. __('Privileges') . "\n"
|
||||
. '</h2>' . "\n";
|
||||
PMA_Message::error(__('No Privileges'))->display();
|
||||
require_once './libraries/footer.inc.php';
|
||||
require './libraries/footer.inc.php';
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1679,7 +1679,7 @@ if (empty($_REQUEST['adduser']) && (! isset($checkprivs) || ! strlen($checkprivs
|
||||
if ($user_does_not_exists) {
|
||||
PMA_Message::warning(__('The selected user was not found in the privilege table.'))->display();
|
||||
PMA_displayLoginInformationFields();
|
||||
//require_once './libraries/footer.inc.php';
|
||||
//require './libraries/footer.inc.php';
|
||||
}
|
||||
|
||||
echo '<form name="usersForm" id="usersForm" action="server_privileges.php" method="post">' . "\n";
|
||||
@@ -2219,6 +2219,6 @@ if (empty($_REQUEST['adduser']) && (! isset($checkprivs) || ! strlen($checkprivs
|
||||
* Displays the footer
|
||||
*/
|
||||
echo "\n\n";
|
||||
require_once './libraries/footer.inc.php';
|
||||
require './libraries/footer.inc.php';
|
||||
|
||||
?>
|
||||
|
Reference in New Issue
Block a user