Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChirayu Chiripal <chirayu.chiripal@gmail.com>2014-08-06 00:15:12 +0400
committerChirayu Chiripal <chirayu.chiripal@gmail.com>2014-08-07 17:50:02 +0400
commit1be86d10626c87e1f5e4953aeb7ba22fdda1dd9f (patch)
treec50a2540730891b1eeed6f2999ee2726b1b211a1 /tbl_change.php
parent8a2de5f44028a791db9b47bd077f55c37e6cf15c (diff)
fix parameter types
Signed-off-by: Chirayu Chiripal <chirayu.chiripal@gmail.com>
Diffstat (limited to 'tbl_change.php')
-rw-r--r--tbl_change.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/tbl_change.php b/tbl_change.php
index 2bdbe52cd3..2288cb64f2 100644
--- a/tbl_change.php
+++ b/tbl_change.php
@@ -165,8 +165,8 @@ if (! $cfg['ShowFieldTypesInDataEditView']) {
$GLOBALS['plugin_scripts'] = array();
foreach ($rows as $row_id => $current_row) {
- if ($current_row === false) {
- unset($current_row);
+ if (empty($current_row)) {
+ $current_row = array();
}
$jsvkey = $row_id;
@@ -188,7 +188,7 @@ foreach ($rows as $row_id => $current_row) {
$html_output .= PMA_getHtmlForInsertEditRow(
$url_params, $table_columns, $column, $comments_map, $timestamp_seen,
$current_result, $chg_evt_handler, $jsvkey, $vkey, $insert_mode,
- isset($current_row) ? $current_row : null, $o_rows, $tabindex, $columns_cnt,
+ $current_row, $o_rows, $tabindex, $columns_cnt,
$is_upload, $tabindex_for_function, $foreigners, $tabindex_for_null,
$tabindex_for_value, $table, $db, $row_id, $titles,
$biggest_max_file_size, $text_dir, $repopulate, $where_clause_array