Rolled back issue #1542186 (PHP 5.4 'Illegal string offset' warning when installing...
authorDavid Rothstein
Tue, 6 Nov 2012 03:56:05 +0000 (22:56 -0500)
committerDavid Rothstein
Tue, 6 Nov 2012 03:56:05 +0000 (22:56 -0500)
includes/database/sqlite/query.inc

index f0ff10d..74ff9ba 100644 (file)
@@ -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']]);
       }
     }
   }