diff options
author | Madhura Jayaratne <madhura.cj@gmail.com> | 2012-04-30 21:53:50 +0400 |
---|---|---|
committer | Madhura Jayaratne <madhura.cj@gmail.com> | 2012-04-30 21:53:50 +0400 |
commit | 8243eace0f1bf6b22756ecada0f618b1c27a089f (patch) | |
tree | 459b8ef609cf32a5cfc173dad0e150c6fb6b91ba /tbl_zoom_select.php | |
parent | 8cad88ecf89281b661b198a95fbec4bd66f126cb (diff) |
Wrap some long lines
Diffstat (limited to 'tbl_zoom_select.php')
-rw-r--r-- | tbl_zoom_select.php | 23 |
1 files changed, 16 insertions, 7 deletions
diff --git a/tbl_zoom_select.php b/tbl_zoom_select.php index 7d11c8057a..3eacd335d4 100644 --- a/tbl_zoom_select.php +++ b/tbl_zoom_select.php @@ -75,8 +75,8 @@ if (isset($_REQUEST['get_data_row']) && $_REQUEST['get_data_row'] == true) { } /** - * Handle AJAX request for changing field information(value,collation,operators,field values) - * in input form + * Handle AJAX request for changing field information + * (value,collation,operators,field values) in input form * @var post_params Object containing parameters for the POST request */ @@ -92,7 +92,8 @@ if (isset($_REQUEST['change_tbl_info']) && $_REQUEST['change_tbl_info'] == true) // Gets the list and number of fields - list($fields_list, $fields_type, $fields_collation, $fields_null) = PMA_tbl_getFields($_REQUEST['db'], $_REQUEST['table']); + list($fields_list, $fields_type, $fields_collation, $fields_null) + = PMA_tbl_getFields($_REQUEST['db'], $_REQUEST['table']); $foreigners = PMA_getForeigners($db, $table); $titles['Browse'] = PMA_getIcon('b_browse.png', __('Browse foreign values')); @@ -158,7 +159,8 @@ $err_url = $goto . '?' . PMA_generate_common_url($db, $table); // Gets the list and number of fields -list($fields_list, $fields_type, $fields_collation, $fields_null) = PMA_tbl_getFields($db, $table); +list($fields_list, $fields_type, $fields_collation, $fields_null) + = PMA_tbl_getFields($db, $table); $fields_cnt = count($fields_list); // retrieve keys into foreign fields, if any @@ -315,7 +317,11 @@ echo '" /></td></tr>'; * Handle the input criteria and generate the query result * Form for displaying query results */ -if (isset($zoom_submit) && $inputs[0] != 'pma_null' && $inputs[1] != 'pma_null' && $inputs[0] != $inputs[1]) { +if (isset($zoom_submit) + && $inputs[0] != 'pma_null' + && $inputs[1] != 'pma_null' + && $inputs[0] != $inputs[1] +) { /* * Query generation part @@ -355,13 +361,16 @@ if (isset($zoom_submit) && $inputs[0] != 'pma_null' && $inputs[1] != 'pma_null' $result = PMA_DBI_query($sql_query . ";", null, PMA_DBI_QUERY_STORE); $fields_meta = PMA_DBI_get_fields_meta($result); while ($row = PMA_DBI_fetch_assoc($result)) { - //Need a row with indexes as 0,1,2 for the PMA_getUniqueCondition hence using a temporary array + //Need a row with indexes as 0,1,2 for the PMA_getUniqueCondition + // hence using a temporary array $tmpRow = array(); foreach ($row as $val) { $tmpRow[] = $val; } //Get unique conditon on each row (will be needed for row update) - $uniqueCondition = PMA_getUniqueCondition($result, $fields_cnt, $fields_meta, $tmpRow, true); + $uniqueCondition = PMA_getUniqueCondition( + $result, $fields_cnt, $fields_meta, $tmpRow, true + ); //Append it to row array as where_clause $row['where_clause'] = $uniqueCondition[0]; |