Commit f09dcf17 authored by Dries's avatar Dries

- 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
......@@ -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']);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment