- Patch #1525138 by twistor, Georgique: Fixed Illegal string offset 'field' in function TaxonomyTermController->buildQuery().
parent
1b0e550212
commit
f09dcf17d7
|
@ -50,7 +50,7 @@ class TermStorageController extends DatabaseStorageController {
|
||||||
if (isset($conditions['name'])) {
|
if (isset($conditions['name'])) {
|
||||||
$query_conditions = &$query->conditions();
|
$query_conditions = &$query->conditions();
|
||||||
foreach ($query_conditions as $key => $condition) {
|
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]['operator'] = 'LIKE';
|
||||||
$query_conditions[$key]['value'] = db_like($query_conditions[$key]['value']);
|
$query_conditions[$key]['value'] = db_like($query_conditions[$key]['value']);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue