@@ -115,7 +115,7 @@ |
||
| 115 | 115 | if ($counter <= $this->_offset) { |
| 116 | 116 | continue; |
| 117 | 117 | } |
| 118 | - if ( $this->_limit |
|
| 118 | + if ($this->_limit |
|
| 119 | 119 | && $counter > ($this->_offset + $this->_limit)) { |
| 120 | 120 | break; |
| 121 | 121 | } |
@@ -140,7 +140,7 @@ discard block |
||
| 140 | 140 | $this->_user_id = midcom::get()->auth->acl->get_user_id(); |
| 141 | 141 | } |
| 142 | 142 | |
| 143 | - if ( $this->hide_invisible |
|
| 143 | + if ($this->hide_invisible |
|
| 144 | 144 | && !$this->_visibility_checks_added) { |
| 145 | 145 | if (!midcom::get()->config->get('show_hidden_objects')) { |
| 146 | 146 | $this->add_constraint('metadata.hidden', '=', false); |
@@ -200,7 +200,7 @@ discard block |
||
| 200 | 200 | // Deal with empty arrays, which would produce invalid queries |
| 201 | 201 | // This is done here to avoid repetitive code in callers, and because |
| 202 | 202 | // it's easy enough to generalize: IN empty set => always false, NOT IN empty set => always true |
| 203 | - if ( is_array($value) |
|
| 203 | + if (is_array($value) |
|
| 204 | 204 | && empty($value)) { |
| 205 | 205 | if ($operator == 'NOT IN') { |
| 206 | 206 | return true; |