do NEVER unset $table or $db;
no need to test for isset() on $db and $table; always test with strlen() for valid $table or $db;
This commit is contained in:
8
main.php
8
main.php
@@ -18,12 +18,8 @@ if (!defined('PMA_DISPLAY_HEADING')) {
|
||||
require_once './libraries/common.inc.php';
|
||||
|
||||
// Handles some variables that may have been sent by the calling script
|
||||
if (isset($db)) {
|
||||
unset($db);
|
||||
}
|
||||
if (isset($table)) {
|
||||
unset($table);
|
||||
}
|
||||
$GLOBALS['db'] = '';
|
||||
$GLOBALS['table'] = '';
|
||||
$show_query = '1';
|
||||
require_once './libraries/header.inc.php';
|
||||
|
||||
|
Reference in New Issue
Block a user