From d5925d5a5188108eab053d96965f4cbdeb17780a Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sun, 8 Jan 2006 07:24:52 +0000 Subject: [PATCH] r691: Change the way we order field positions --- showreport.php | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/showreport.php b/showreport.php index 776e38e..c8fef65 100644 --- a/showreport.php +++ b/showreport.php @@ -202,19 +202,16 @@ else $fields = construct_custom_fields($bug); $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