From c3189393448f80543ecdb6c94c8c533f204cb0ad Mon Sep 17 00:00:00 2001 From: Madhura Jayaratne Date: Sun, 31 Jul 2011 01:14:42 +0530 Subject: [PATCH] Use curly brackets for if/else and foreach blocks --- tbl_select.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tbl_select.php b/tbl_select.php index 25e1b9aa2f..dd58781c1b 100644 --- a/tbl_select.php +++ b/tbl_select.php @@ -479,13 +479,15 @@ else { // quote values one by one $values = explode(',', $fields[$i]); - foreach ($values as &$value) + foreach ($values as &$value) { $value = $quot . PMA_sqlAddSlashes(trim($value)) . $quot; + } - if ($func_type == 'BETWEEN' || $func_type == 'NOT BETWEEN') + if ($func_type == 'BETWEEN' || $func_type == 'NOT BETWEEN') { $w[] = $backquoted_name . ' ' . $func_type . ' ' . (isset($values[0]) ? $values[0] : '') . ' AND ' . (isset($values[1]) ? $values[1] : ''); - else + } else { $w[] = $backquoted_name . ' ' . $func_type . ' (' . implode(',', $values) . ')'; + } } else { $w[] = $backquoted_name . ' ' . $func_type . ' ' . $quot . PMA_sqlAddSlashes($fields[$i]) . $quot;;