removed tabs and/or trailing spaces

This commit is contained in:
Loïc Chapeaux
2002-02-10 09:31:41 +00:00
parent 579387e7c4
commit 7f919e6a86
54 changed files with 450 additions and 447 deletions

View File

@@ -34,19 +34,19 @@ mysql_select_db($db);
if (isset($submit)) {
$sql_query = $query_cpy = '';
// transform the radio button field_key into 3 arrays
// Transforms the radio button field_key into 3 arrays
$field_cnt = count($field_name);
for ($i = 0; $i < $field_cnt; ++$i) {
if (${'field_key_'.$i} == 'primary_'.$i) {
$field_primary[]=$i;
if (${'field_key_' . $i} == 'primary_' . $i) {
$field_primary[] = $i;
}
if (${'field_key_'.$i} == 'index_'.$i) {
$field_index[]=$i;
if (${'field_key_' . $i} == 'index_' . $i) {
$field_index[] = $i;
}
if (${'field_key_'.$i} == 'unique_'.$i) {
$field_unique[]=$i;
if (${'field_key_' . $i} == 'unique_' . $i) {
$field_unique[] = $i;
}
}
} // end for
// Builds the fields creation statements
for ($i = 0; $i < $field_cnt; $i++) {
if (empty($field_name[$i])) {