diff --git a/libraries/import.lib.php b/libraries/import.lib.php index 9bfcdf04fa..e2fab3c3ed 100644 --- a/libraries/import.lib.php +++ b/libraries/import.lib.php @@ -1509,23 +1509,22 @@ function PMA_getSimulatedUpdateQuery($analyzed_sql_results) ) { break; } - if(!$in_function){ + if (!$in_function) { if ($term['type'] == 'punct_listsep') { $extra_where_clause[] = ' OR '; } else if ($term['type'] == 'punct') { $extra_where_clause[] = ' <> '; - } else if($term['type'] == 'alpha_functionName') { + } else if ($term['type'] == 'alpha_functionName') { array_pop($extra_where_clause); array_pop($extra_where_clause); } else { $extra_where_clause[] = $term['data']; } - } - else if($term['type'] == 'punct_bracket_close_round') { + } else if ($term['type'] == 'punct_bracket_close_round') { $in_function--; } - if($term['type'] == 'alpha_functionName') { + if ($term['type'] == 'alpha_functionName') { $in_function++; } @@ -1560,7 +1559,9 @@ function PMA_getSimulatedUpdateQuery($analyzed_sql_results) // Get WHERE clause. $where_clause .= $analyzed_sql_results['analyzed_sql'][0]['where_clause']; if (empty($where_clause)) { - $where_clause = (!empty($extra_where_clause) && $extra_where_clause[0]) ? implode(' ',$extra_where_clause) : '1'; + $where_clause = (!empty($extra_where_clause) && $extra_where_clause[0]) + ? implode(' ', $extra_where_clause) + : '1'; } $matched_row_query = 'SELECT '