Skip to content

Commit

Permalink
Fix coding style
Browse files Browse the repository at this point in the history
  • Loading branch information
lem9 committed Oct 25, 2013
1 parent 31f79b2 commit d04ee99
Showing 1 changed file with 19 additions and 5 deletions.
24 changes: 19 additions & 5 deletions libraries/DBQbe.class.php
Expand Up @@ -913,14 +913,19 @@ private function _getWhereClause()
{
$where_clause = '';
$criteria_cnt = 0;
for ($column_index = 0; $column_index < $this->_criteria_column_count; $column_index++) {
for (
$column_index = 0;
$column_index < $this->_criteria_column_count;
$column_index++
) {
if (! empty($this->_curField[$column_index])
&& ! empty($this->_curCriteria[$column_index])
&& $column_index
&& isset($last_where)
&& isset($this->_curAndOrCol)
) {
$where_clause .= ' ' . strtoupper($this->_curAndOrCol[$last_where]) . ' ';
$where_clause .= ' '
. strtoupper($this->_curAndOrCol[$last_where]) . ' ';
}
if (! empty($this->_curField[$column_index])
&& ! empty($this->_curCriteria[$column_index])
Expand All @@ -938,16 +943,25 @@ private function _getWhereClause()
if (! isset($this->_curAndOrRow)) {
$this->_curAndOrRow = array();
}
for ($row_index = 0; $row_index <= $this->_criteria_row_count; $row_index++) {
for (
$row_index = 0;
$row_index <= $this->_criteria_row_count;
$row_index++
) {
$criteria_cnt = 0;
$qry_orwhere = '';
$last_orwhere = '';
for ($column_index = 0; $column_index < $this->_criteria_column_count; $column_index++) {
for (
$column_index = 0;
$column_index < $this->_criteria_column_count;
$column_index++
) {
if (! empty($this->_curField[$column_index])
&& ! empty(${'curOr' . $row_index}[$column_index])
&& $column_index
) {
$qry_orwhere .= ' ' . strtoupper($this->_curAndOrCol[$last_orwhere]) . ' ';
$qry_orwhere .= ' '
. strtoupper($this->_curAndOrCol[$last_orwhere]) . ' ';
}
if (! empty($this->_curField[$column_index])
&& ! empty(${'curOr' . $row_index}[$column_index])
Expand Down

0 comments on commit d04ee99

Please sign in to comment.