Fixed bug #16120: UPDATE queries fails for ['TYPO3_DB']->sql_query (thanks to Alan...
authorXavier Perseguers <typo3@perseguers.ch>
Sat, 30 Oct 2010 09:10:38 +0000 (09:10 +0000)
committerXavier Perseguers <typo3@perseguers.ch>
Sat, 30 Oct 2010 09:10:38 +0000 (09:10 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Extensions/dbal/trunk@39691 735d13b6-9817-0410-8766-e36946ffe9aa

typo3/sysext/dbal/ChangeLog
typo3/sysext/dbal/class.ux_t3lib_db.php

index 662aba6..c800e12 100644 (file)
@@ -1,3 +1,7 @@
+2010-10-30  Xavier Perseguers  <typo3@perseguers.ch>
+
+       * Fixed bug #16120: UPDATE queries fails for $GLOBALS['TYPO3_DB']->sql_query (thanks to Alan Oguzhan)
+
 2010-10-19  Xavier Perseguers  <typo3@perseguers.ch>
 
        * Set version to 1.2.0alpha3
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';