Revision 4003efde
Added by Assos Assos over 4 years ago
drupal7/sites/all/modules/views/handlers/views_handler_filter.inc | ||
---|---|---|
1387 | 1387 |
// Various ways to check for the absence of non-required input. |
1388 | 1388 |
if (empty($this->options['expose']['required'])) { |
1389 | 1389 |
if ($this->operator == 'empty' || $this->operator == 'not empty') { |
1390 |
$value = is_array($value) ? $value['value'] : $value; |
|
1390 |
if (is_array($value) && array_key_exists('value', $value)) { |
|
1391 |
$value = $value['value']; |
|
1392 |
} |
|
1391 | 1393 |
$this->operator = ($this->operator == 'empty' && empty($value)) || ($this->operator == 'not empty' && !empty($value)) ? 'not empty' : 'empty'; |
1392 | 1394 |
} |
1393 | 1395 |
|
Also available in: Unified diff
Weekly update of contrib modules