Skip to content

Commit

Permalink
Clarify variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
lem9 committed Oct 20, 2012
1 parent 449716a commit b3a593c
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions libraries/DisplayResults.class.php
Expand Up @@ -2663,7 +2663,7 @@ private function _getTableBody(


/**
* Prepare rows
* Get the values for one data row
*
* @param integer &$dt_result the link id associated to the query
* which results have to be displayed
Expand Down Expand Up @@ -2703,15 +2703,17 @@ private function _getRowValues(

$row_info = $this->_getRowInfoForSpecialLinks($row, $col_order);

for ($j = 0; $j < $this->__get('_fields_cnt'); ++$j) {
for ($currentColumn = 0;
$currentColumn < $this->__get('_fields_cnt');
++$currentColumn) {

// assign $i with appropriate column order
$i = $col_order ? $col_order[$j] : $j;
$i = $col_order ? $col_order[$currentColumn] : $currentColumn;

$meta = $fields_meta[$i];
$not_null_class = $meta->not_null ? 'not_null' : '';
$relation_class = isset($map[$meta->name]) ? 'relation' : '';
$hide_class = ($col_visib && !$col_visib[$j]
$hide_class = ($col_visib && ! $col_visib[$currentColumn]
// hide per <td> only if the display dir is not vertical
&& ($_SESSION['tmp_user_values']['disp_direction']
!= self::DISP_DIR_VERTICAL))
Expand Down

0 comments on commit b3a593c

Please sign in to comment.