[FEATURE] Make pidList a cObj
authorsimonschaufi <simonschaufi@735d13b6-9817-0410-8766-e36946ffe9aa>
Sun, 13 Nov 2011 14:39:44 +0000 (14:39 +0000)
committersimonschaufi <simonschaufi@735d13b6-9817-0410-8766-e36946ffe9aa>
Sun, 13 Nov 2011 14:39:44 +0000 (14:39 +0000)
Resolves: #13266

git-svn-id: https://svn.typo3.org/TYPO3v4/Extensions/macina_banners/trunk@54068 735d13b6-9817-0410-8766-e36946ffe9aa

pi1/class.tx_macinabanners_pi1.php

index df9636c..a4ae8a0 100755 (executable)
@@ -159,7 +159,12 @@ class tx_macinabanners_pi1 extends tslib_pibase {
 
                // FIX pidList beachten !! Fuer Version 1.5.2
                if (!empty($conf['pidList'])) {
-                       $where .= ' AND pid IN ( '.$conf['pidList'].' ) ';
+                       if (!empty($conf['pidList.'])) {
+                               $where .= ' AND pid IN ('.$this->cObj->cObjGetSingle($conf['pidList'],$conf['pidList.']).') ';
+                       }
+                       else {
+                               $where .= ' AND pid IN ('.$GLOBALS['TYPO3_DB']->cleanIntList($conf['pidList']).') ';
+                       }
                }
 
                // order by