- Patch #1525138 by twistor, Georgique: Fixed Illegal string offset 'field' in function TaxonomyTermController->buildQuery().

8.0.x
Dries 2012-06-29 09:50:27 -04:00
parent 1b0e550212
commit f09dcf17d7
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ class TermStorageController extends DatabaseStorageController {
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']);
}