[BUGFIX] DBAL does not respect sql_query.passthrough setting
authorXavier Perseguers <xavier@typo3.org>
Thu, 20 Oct 2011 14:32:31 +0000 (16:32 +0200)
committerXavier Perseguers <xavier@typo3.org>
Thu, 20 Oct 2011 14:32:31 +0000 (16:32 +0200)
The check for sql_query.passthrough is invalid and always returns FALSE.

Change-Id: Ia3c4fc16c27e51e67340fb52dc98240f68ab69ee
Fixes: #31127
Releases: 4.5, 4.6

typo3/sysext/dbal/class.ux_t3lib_db.php

index 9f0c184..7728c96 100644 (file)
@@ -2519,7 +2519,7 @@ class ux_t3lib_DB extends t3lib_DB {
         */
        public function sql_query($query) {
                $globalConfig = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['dbal']);
-               if ($globalConfig['sql_query.passthrough']) {
+               if ($globalConfig['sql_query.']['passthrough']) {
                        return parent::sql_query($query);
                }