Corrected application of language and enable conditions
authorfrancois <francois@735d13b6-9817-0410-8766-e36946ffe9aa>
Tue, 24 Mar 2009 14:36:38 +0000 (14:36 +0000)
committerfrancois <francois@735d13b6-9817-0410-8766-e36946ffe9aa>
Tue, 24 Mar 2009 14:36:38 +0000 (14:36 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Extensions/overlays/trunk@18261 735d13b6-9817-0410-8766-e36946ffe9aa

class.tx_overlays.php
ext_emconf.php

index 3ccbcfb..6ccd519 100644 (file)
@@ -61,12 +61,12 @@ class tx_overlays {
                $condition = self::getLanguageCondition($fromTable);
                if (!empty($condition)) {
                        if (!empty($where)) $where .= ' AND ';
-                       $where .= $condition;
+                       $where .= '(' . $condition . ')';
                }
                $condition = self::getEnableFieldsCondition($fromTable);
                if (!empty($condition)) {
                        if (!empty($where)) $where .= ' AND ';
-                       $where .= $condition;
+                       $where .= '(' . $condition . ')';
                }
 
                        // If the language is not default, prepare for overlays
index 0ae382f..7e8717a 100644 (file)
@@ -29,7 +29,7 @@ $EM_CONF[$_EXTKEY] = array(
        'clearCacheOnLoad' => 0,
        'lockType' => '',
        'author_company' => '',
-       'version' => '0.2.1',
+       'version' => '0.2.2',
        'constraints' => array(
                'depends' => array(
                ),