Skip to content
Snippets Groups Projects
Commit f09dcf17 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #1525138 by twistor, Georgique: Fixed Illegal string offset 'field' in...

- Patch #1525138 by twistor, Georgique: Fixed Illegal string offset 'field' in function TaxonomyTermController->buildQuery().
parent 1b0e5502
Branches
Tags
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -50,7 +50,7 @@ protected function buildQuery($ids, $conditions = array(), $revision_id = FALSE)
if (isset($conditions['name'])) {
$query_conditions = &$query->conditions();
foreach ($query_conditions as $key => $condition) {
if ($condition['field'] == 'base.name') {
if (is_array($condition) && $condition['field'] == 'base.name') {
$query_conditions[$key]['operator'] = 'LIKE';
$query_conditions[$key]['value'] = db_like($query_conditions[$key]['value']);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment