diff --git a/libraries/DisplayResults.class.php b/libraries/DisplayResults.class.php index 37dde35c67..8920112535 100644 --- a/libraries/DisplayResults.class.php +++ b/libraries/DisplayResults.class.php @@ -108,7 +108,6 @@ class PMA_DisplayResults * @return array an array with explicit indexes for all the display * elements * - * @global string the table name * @global integer the total number of rows returned by the SQL query * without any programmatically appended "LIMIT" clause * @global array the properties of the fields returned by the query @@ -122,7 +121,6 @@ class PMA_DisplayResults private function _setDisplayMode(&$the_disp_mode, &$the_total) { - global $table; global $unlim_num_rows, $fields_meta; global $err_url; @@ -243,9 +241,9 @@ class PMA_DisplayResults $the_total = $unlim_num_rows; } elseif ((($do_display['nav_bar'] == '1') || ($do_display['sort_lnk'] == '1')) - && (strlen($this->_db) && !empty($table)) + && (strlen($this->_db) && !empty($this->_table)) ) { - $the_total = PMA_Table::countRecords($this->_db, $table); + $the_total = PMA_Table::countRecords($this->_db, $this->_table); } // 4. If navigation bar or sorting fields names URLs should be @@ -259,7 +257,7 @@ class PMA_DisplayResults // of sorting VIEW results. if (isset($unlim_num_rows) && $unlim_num_rows < 2 - && ! PMA_Table::isView($this->_db, $table) + && ! PMA_Table::isView($this->_db, $this->_table) ) { // force display of navbar for vertical/horizontal display-choice. // $do_display['nav_bar'] = (string) '0'; @@ -311,7 +309,6 @@ class PMA_DisplayResults * * @return string html content * - * @global string $table the table name * @global string $goto the URL to go back in case of errors * * @access private @@ -323,7 +320,7 @@ class PMA_DisplayResults $html_sql_query, $onsubmit = '', $input_for_real_end = '', $onclick = '' ) { - global $table, $goto; + global $goto; $caption_output = ''; // for true or 'both' @@ -341,7 +338,7 @@ class PMA_DisplayResults return '