Commit 3fe579b2 authored by catch's avatar catch
Browse files

Issue #1542186 by pp, redcell, rickmanelius: Fixed Illegal string offset...

Issue #1542186 by pp, redcell, rickmanelius: Fixed Illegal string offset warning during install on sqlite.
parent afef1a20
...@@ -34,11 +34,13 @@ class Update extends QueryUpdate { ...@@ -34,11 +34,13 @@ class Update extends QueryUpdate {
*/ */
protected function removeFieldsInCondition(&$fields, ConditionInterface $condition) { protected function removeFieldsInCondition(&$fields, ConditionInterface $condition) {
foreach ($condition->conditions() as $child_condition) { foreach ($condition->conditions() as $child_condition) {
if ($child_condition['field'] instanceof ConditionInterface) { if (isset($child_condition['field'])) {
$this->removeFieldsInCondition($fields, $child_condition['field']); if ($child_condition['field'] instanceof ConditionInterface) {
} $this->removeFieldsInCondition($fields, $child_condition['field']);
else { }
unset($fields[$child_condition['field']]); else {
unset($fields[$child_condition['field']]);
}
} }
} }
} }
...@@ -77,4 +79,4 @@ public function execute() { ...@@ -77,4 +79,4 @@ public function execute() {
return parent::execute(); return parent::execute();
} }
} }
\ No newline at end of file
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