function views_break_phrase() {
  // ...
  // Keep an 'error' value if invalid strings were given.
  if (!empty($str) && (empty($filter->value) || !is_array($filter->value))) {
    $filter->value = array(-1);
    return $filter;
  }
  // ...
}

Method views_plugin_argument_validate_node::validate_argument()
and
method views_handler_argument_term_node_tid_depth::query()
check the return value as fallow:

$tids = views_break_phrase($argument, $tids);
if ($tids->value == -1) {
  return FALSE;
}
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dawehner’s picture

Status: Active » Needs review
FileSize
1.23 KB

Here is a fix for the places where this exists.

dawehner’s picture

Status: Needs review » Fixed

This makes sense, so committed to 6.x-3.x and 7.x-3.x

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.