@@ -715,14 +715,13 @@ public function __invoke(): void
715715 // can choke on it so avoid parsing)
716716 $ sqlLength = mb_strlen ($ GLOBALS ['sql_query ' ]);
717717 if ($ sqlLength <= $ GLOBALS ['cfg ' ]['MaxCharactersInDisplayedSQL ' ]) {
718- [
719- $ analyzed_sql_results ,
720- $ GLOBALS ['db ' ],
721- $ table_from_sql ,
722- ] = ParseAnalyze::sqlQuery ($ GLOBALS ['sql_query ' ], $ GLOBALS ['db ' ]);
718+ [$ statementInfo , $ GLOBALS ['db ' ], $ table_from_sql ] = ParseAnalyze::sqlQuery (
719+ $ GLOBALS ['sql_query ' ],
720+ $ GLOBALS ['db ' ]
721+ );
723722
724- $ GLOBALS ['reload ' ] = $ analyzed_sql_results [ ' reload ' ] ;
725- $ GLOBALS ['offset ' ] = $ analyzed_sql_results [ ' offset ' ] ;
723+ $ GLOBALS ['reload ' ] = $ statementInfo -> reload ;
724+ $ GLOBALS ['offset ' ] = $ statementInfo -> offset ;
726725
727726 if ($ GLOBALS ['table ' ] != $ table_from_sql && ! empty ($ table_from_sql )) {
728727 $ GLOBALS ['table ' ] = $ table_from_sql ;
@@ -747,19 +746,18 @@ public function __invoke(): void
747746
748747 foreach ($ queriesToBeExecuted as $ GLOBALS ['sql_query ' ]) {
749748 // parse sql query
750- [
751- $ analyzed_sql_results ,
752- $ GLOBALS ['db ' ],
753- $ table_from_sql ,
754- ] = ParseAnalyze::sqlQuery ($ GLOBALS ['sql_query ' ], $ GLOBALS ['db ' ]);
749+ [$ statementInfo , $ GLOBALS ['db ' ], $ table_from_sql ] = ParseAnalyze::sqlQuery (
750+ $ GLOBALS ['sql_query ' ],
751+ $ GLOBALS ['db ' ]
752+ );
755753
756- $ GLOBALS ['offset ' ] = $ analyzed_sql_results [ ' offset ' ] ;
757- $ GLOBALS ['reload ' ] = $ analyzed_sql_results [ ' reload ' ] ;
754+ $ GLOBALS ['offset ' ] = $ statementInfo -> offset ;
755+ $ GLOBALS ['reload ' ] = $ statementInfo -> reload ;
758756
759757 // Check if User is allowed to issue a 'DROP DATABASE' Statement
760758 if (
761759 $ this ->sql ->hasNoRightsToDropDatabase (
762- $ analyzed_sql_results ,
760+ $ statementInfo ,
763761 $ GLOBALS ['cfg ' ]['AllowUserDropDatabase ' ],
764762 $ this ->dbi ->isSuperUser ()
765763 )
@@ -779,7 +777,7 @@ public function __invoke(): void
779777 }
780778
781779 $ html_output .= $ this ->sql ->executeQueryAndGetQueryResponse (
782- $ analyzed_sql_results , // analyzed_sql_results
780+ $ statementInfo ,
783781 false , // is_gotofile
784782 $ GLOBALS ['db ' ], // db
785783 $ GLOBALS ['table ' ], // table
0 commit comments