Remove $GLOBALS['table_from_sql']
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
This commit is contained in:
parent
4ea2b81612
commit
7f180163dd
@ -5212,7 +5212,7 @@ parameters:
|
||||
|
||||
-
|
||||
message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#"
|
||||
count: 5
|
||||
count: 4
|
||||
path: src/Controllers/Sql/SqlController.php
|
||||
|
||||
-
|
||||
|
||||
@ -3208,7 +3208,6 @@
|
||||
<code><![CDATA[$GLOBALS['disp_query']]]></code>
|
||||
<code><![CDATA[$GLOBALS['errorUrl']]]></code>
|
||||
<code><![CDATA[$GLOBALS['message_to_show']]]></code>
|
||||
<code><![CDATA[$GLOBALS['table_from_sql']]]></code>
|
||||
<code><![CDATA[$GLOBALS['unlim_num_rows']]]></code>
|
||||
</InvalidArrayOffset>
|
||||
<MixedArgument>
|
||||
@ -3233,7 +3232,6 @@
|
||||
<code><![CDATA[$GLOBALS['errorUrl']]]></code>
|
||||
<code><![CDATA[$GLOBALS['message_to_show']]]></code>
|
||||
<code><![CDATA[$GLOBALS['sql_query']]]></code>
|
||||
<code><![CDATA[$GLOBALS['table_from_sql']]]></code>
|
||||
<code><![CDATA[$GLOBALS['unlim_num_rows']]]></code>
|
||||
<code>$bkmAllUsers</code>
|
||||
<code>$sqlQuery</code>
|
||||
|
||||
@ -54,7 +54,6 @@ class SqlController extends AbstractController
|
||||
$GLOBALS['disp_message'] ??= null;
|
||||
$GLOBALS['complete_query'] ??= null;
|
||||
$GLOBALS['back'] ??= null;
|
||||
$GLOBALS['table_from_sql'] ??= null;
|
||||
|
||||
$this->checkUserPrivileges->getPrivileges();
|
||||
|
||||
@ -139,13 +138,10 @@ class SqlController extends AbstractController
|
||||
/**
|
||||
* Parse and analyze the query
|
||||
*/
|
||||
[$statementInfo, $GLOBALS['db'], $GLOBALS['table_from_sql']] = ParseAnalyze::sqlQuery(
|
||||
$GLOBALS['sql_query'],
|
||||
$GLOBALS['db'],
|
||||
);
|
||||
[$statementInfo, $GLOBALS['db'], $tableFromSql] = ParseAnalyze::sqlQuery($GLOBALS['sql_query'], $GLOBALS['db']);
|
||||
|
||||
if ($GLOBALS['table'] != $GLOBALS['table_from_sql'] && ! empty($GLOBALS['table_from_sql'])) {
|
||||
$GLOBALS['table'] = $GLOBALS['table_from_sql'];
|
||||
if ($GLOBALS['table'] != $tableFromSql && $tableFromSql !== '') {
|
||||
$GLOBALS['table'] = $tableFromSql;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Loading…
Reference in New Issue
Block a user