From e5febe662786f084b1ab74e7080bccfffcd73c2c Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sun, 8 Jan 2006 07:28:10 +0000 Subject: [PATCH] r692: Change the custom field ordering positions; like in r691 --- search.php | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/search.php b/search.php index bb5f805..9d5c92f 100644 --- a/search.php +++ b/search.php @@ -316,19 +316,16 @@ if ($_REQUEST['do'] == 'search') $fields = construct_custom_fields($bug, true); $show['customfields'] = ($fields ? true : false); - $bugsys->debug('fields modulo: ' . count($fields) % 2); - $i = 1; + $i = 0; foreach ($fields AS $field) { - $bugsys->debug("i = $i"); - if ($i == 1) + if ($i % 2 == 0) { - $customfields['right'] .= $field; + $customfields['left'] .= $field; } - else if ($i == 2) + else { - $customfields['left'] .= $field; - $i = 0; + $customfields['right'] .= $field; } $i++; } -- 2.43.5