summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--includes/database/sqlite/query.inc12
1 files changed, 5 insertions, 7 deletions
diff --git a/includes/database/sqlite/query.inc b/includes/database/sqlite/query.inc
index f0ff10d..74ff9ba 100644
--- a/includes/database/sqlite/query.inc
+++ b/includes/database/sqlite/query.inc
@@ -72,13 +72,11 @@ class UpdateQuery_sqlite extends UpdateQuery {
*/
protected function removeFieldsInCondition(&$fields, QueryConditionInterface $condition) {
foreach ($condition->conditions() as $child_condition) {
- if (isset($child_condition['field'])) {
- if ($child_condition['field'] instanceof ConditionInterface) {
- $this->removeFieldsInCondition($fields, $child_condition['field']);
- }
- else {
- unset($fields[$child_condition['field']]);
- }
+ if ($child_condition['field'] instanceof QueryConditionInterface) {
+ $this->removeFieldsInCondition($fields, $child_condition['field']);
+ }
+ else {
+ unset($fields[$child_condition['field']]);
}
}
}