| @@ 920-926 (lines=7) @@ | ||
| 917 | $this->coalesceArr($_POST, 'nulls', []); |
|
| 918 | ||
| 919 | // Verify that they haven't supplied a value for unary operators |
|
| 920 | foreach ($_POST['ops'] as $k => $v) { |
|
| 921 | if ('p' == $data->selectOps[$v] && $_POST['values'][$k] != '') { |
|
| 922 | $this->doSelectRows(true, $this->lang['strselectunary']); |
|
| 923 | ||
| 924 | return; |
|
| 925 | } |
|
| 926 | } |
|
| 927 | ||
| 928 | if (0 == sizeof($_POST['show'])) { |
|
| 929 | $this->doSelectRows(true, $this->lang['strselectneedscol']); |
|
| @@ 150-156 (lines=7) @@ | ||
| 147 | $this->coalesceArr($_POST, 'nulls', []); |
|
| 148 | ||
| 149 | // Verify that they haven't supplied a value for unary operators |
|
| 150 | foreach ($_POST['ops'] as $k => $v) { |
|
| 151 | if ('p' == $data->selectOps[$v] && $_POST['values'][$k] != '') { |
|
| 152 | $this->doSelectRows(true, $this->lang['strselectunary']); |
|
| 153 | ||
| 154 | return; |
|
| 155 | } |
|
| 156 | } |
|
| 157 | ||
| 158 | if (0 == sizeof($_POST['show'])) { |
|
| 159 | return $this->doSelectRows(true, $this->lang['strselectneedscol']); |
|