variable clashing
This commit is contained in:
@@ -31,11 +31,11 @@ if (empty($is_db)) {
|
|||||||
if (empty($is_table)) {
|
if (empty($is_table)) {
|
||||||
// Not a valid table name -> back to the db_details.php
|
// Not a valid table name -> back to the db_details.php
|
||||||
if (isset($table) && strlen($table)) {
|
if (isset($table) && strlen($table)) {
|
||||||
$result = PMA_DBI_try_query(
|
$_result = PMA_DBI_try_query(
|
||||||
'SHOW TABLES LIKE \'' . PMA_sqlAddslashes($table, true) . '\';',
|
'SHOW TABLES LIKE \'' . PMA_sqlAddslashes($table, true) . '\';',
|
||||||
null, PMA_DBI_QUERY_STORE);
|
null, PMA_DBI_QUERY_STORE);
|
||||||
$is_table = @PMA_DBI_num_rows($result);
|
$is_table = @PMA_DBI_num_rows($_result);
|
||||||
PMA_DBI_free_result($result);
|
PMA_DBI_free_result($_result);
|
||||||
} else {
|
} else {
|
||||||
$is_table = false;
|
$is_table = false;
|
||||||
}
|
}
|
||||||
@@ -48,11 +48,11 @@ if (empty($is_table)) {
|
|||||||
// fast):
|
// fast):
|
||||||
|
|
||||||
// @todo should this check really only happen if IS_TRANSFORMATION_WRAPPER?
|
// @todo should this check really only happen if IS_TRANSFORMATION_WRAPPER?
|
||||||
$result = PMA_DBI_try_query(
|
$_result = PMA_DBI_try_query(
|
||||||
'SELECT COUNT(*) FROM `' . PMA_sqlAddslashes($table, true) . '`;',
|
'SELECT COUNT(*) FROM `' . PMA_sqlAddslashes($table, true) . '`;',
|
||||||
null, PMA_DBI_QUERY_STORE);
|
null, PMA_DBI_QUERY_STORE);
|
||||||
$is_table = ($result && @PMA_DBI_num_rows($result));
|
$is_table = ($_result && @PMA_DBI_num_rows($_result));
|
||||||
PMA_DBI_free_result($result);
|
PMA_DBI_free_result($_result);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (! $is_table) {
|
if (! $is_table) {
|
||||||
|
Reference in New Issue
Block a user