PHP3 compatibility

This commit is contained in:
Garvin Hicking
2003-05-02 19:59:44 +00:00
parent b2e5dfc23c
commit 8b8f0c6d16
2 changed files with 7 additions and 2 deletions

View File

@@ -25,6 +25,7 @@ $Source$
altered the way the form is submitted in LeftFrameLight mode to
keep the queryframe. Only if JavaScript is usable, otherwise it's
not necessary to keep the 'opener' pointer.
* libraries/display_tbl.lib.php3: PHP3 compatibility.
2003-04-30 Marc Delisle <lem9@users.sourceforge.net>
* pdf_schema.php3, bug 729517, better comment output,

View File

@@ -441,7 +441,7 @@ if (!defined('PMA_DISPLAY_TBL_LIB_INCLUDED')) {
*
* @see PMA_displayTable()
*/
function PMA_displayTableHeaders(&$is_display, &$fields_meta, $fields_cnt = 0, $analyzed_sql = array())
function PMA_displayTableHeaders(&$is_display, &$fields_meta, $fields_cnt = 0, $analyzed_sql = '')
{
global $lang, $convcharset, $server, $db, $table;
global $goto;
@@ -449,6 +449,10 @@ if (!defined('PMA_DISPLAY_TBL_LIB_INCLUDED')) {
global $vertical_display, $disp_direction, $repeat_cells, $highlight_columns;
global $dontlimitchars;
if ($analyzed_sql == '') {
$analyzed_sql = array();
}
if ($disp_direction == 'horizontal' || $disp_direction == 'horizontalflipped') {
?>
<!-- Results table headers -->
@@ -1088,7 +1092,7 @@ if (!defined('PMA_DISPLAY_TBL_LIB_INCLUDED')) {
if (file_exists('./libraries/transformations/' . $include_file)) {
$transformfunction_name = str_replace('.inc.php3', '', $GLOBALS['mime_map'][$meta->name]['transformation']);
@include('./libraries/transformations/' . $include_file);
include('./libraries/transformations/' . $include_file);
if (defined('PMA_TRANSFORMATION_' . strtoupper($transformfunction_name)) && function_exists('PMA_transformation_' . $transformfunction_name)) {
$transform_function = 'PMA_transformation_' . $transformfunction_name;