Fixed bug #16120: UPDATE queries fails for ['TYPO3_DB']->sql_query (thanks to Alan...
[Packages/TYPO3.CMS.git] / typo3 / sysext / dbal / class.ux_t3lib_db.php
index 077c5a5..976133d 100644 (file)
@@ -920,7 +920,7 @@ class ux_t3lib_DB extends t3lib_DB {
                        case 'UPDATE':
                                $table = $queryParts['TABLE'];
                                $fields = array();
-                               foreach ($components['FIELDS'] as $fN => $fV) {
+                               foreach ($queryParts['FIELDS'] as $fN => $fV) {
                                        $fields[$fN] = $fV[0];
                                }
                                $whereClause = isset($queryParts['WHERE']) ? $this->SQLparser->compileWhereClause($queryParts['WHERE']) : '1=1';