Fixed a logical bug when PHP modules should be ORed instead of ANDed
authorXavier Perseguers <typo3@perseguers.ch>
Fri, 30 Apr 2010 18:12:55 +0000 (18:12 +0000)
committerXavier Perseguers <typo3@perseguers.ch>
Fri, 30 Apr 2010 18:12:55 +0000 (18:12 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Extensions/dbal/trunk@32806 735d13b6-9817-0410-8766-e36946ffe9aa

typo3/sysext/dbal/class.tx_dbal_installtool.php

index bc2d6e7..219386e 100644 (file)
@@ -358,7 +358,11 @@ class tx_dbal_installtool {
                $availableDrivers = array();
                foreach ($this->supportedDrivers as $abstractionLayer => $drivers) {
                        foreach ($drivers as $driver => $info) {
-                               $isAvailable = TRUE;
+                               if (isset($info['combine']) && $info['combine'] === 'OR') {
+                                       $isAvailable = FALSE;
+                               } else {
+                                       $isAvailable = TRUE;
+                               }
 
                                        // Loop through each PHP module dependency to ensure it is loaded
                                foreach ($info['extensions'] as $extension) {