missing return value

This commit is contained in:
thilinaa 2012-08-12 10:22:52 +05:30
parent ee771439bb
commit 07e9e3c166
2 changed files with 15 additions and 15 deletions

View File

@ -257,19 +257,18 @@ foreach ($tables as $keyname => $current_table) {
$server_slave_status, $truename
);
$response->addHTML(
PMA_getHtmlForStructureTableRow(
$i, $odd_row, $table_is_view, $current_table, $checked,
$browse_table_label, $tracking_icon,$server_slave_status,
$browse_table, $tbl_url_query, $search_table, $db_is_information_schema,
$titles, $empty_table,$drop_query, $drop_message, $collation,
$formatted_size, $unit, $overhead,
(isset ($create_time) ? $create_time : ''),
(isset ($update_time) ? $update_time : ''),
(isset ($check_time) ? $check_time : ''),
$is_show_stats, $ignored, $do, $colspan_for_structure
)
list($html_output, $odd_row) = PMA_getHtmlForStructureTableRow(
$i, $odd_row, $table_is_view, $current_table, $checked,
$browse_table_label, $tracking_icon,$server_slave_status,
$browse_table, $tbl_url_query, $search_table, $db_is_information_schema,
$titles, $empty_table,$drop_query, $drop_message, $collation,
$formatted_size, $unit, $overhead,
(isset ($create_time) ? $create_time : ''),
(isset ($update_time) ? $update_time : ''),
(isset ($check_time) ? $check_time : ''),
$is_show_stats, $ignored, $do, $colspan_for_structure
);
$response->addHTML($html_output);
} // end foreach

View File

@ -392,7 +392,8 @@ function PMA_getTimeForCreateUpdateCheck($current_table, $time_label, $time_all)
}
/**
* Get HTML for each table row of the database structure table
* Get HTML for each table row of the database structure table,
* And this function returns $odd_row param also
*
* @param integer $curr current entry
* @param boolean $odd_row whether row is odd or not
@ -422,7 +423,7 @@ function PMA_getTimeForCreateUpdateCheck($current_table, $time_label, $time_all)
* @param boolean $do do
* @param intger $colspan_for_structure colspan for structure
*
* @return string $html_output
* @return array $html_output, $odd_row
*/
function PMA_getHtmlForStructureTableRow($curr, $odd_row, $table_is_view, $current_table,
$checked, $browse_table_label, $tracking_icon,$server_slave_status,
@ -496,7 +497,7 @@ function PMA_getHtmlForStructureTableRow($curr, $odd_row, $table_is_view, $curre
} // end if (isset($current_table['TABLE_ROWS'])) else
$html_output .= '</tr>';
return $html_output;
return array($html_output, $odd_row);
}
/**