whitespace and CGL cleanup
authorIngo Renner <ingo.renner@typo3.org>
Mon, 26 May 2008 08:01:37 +0000 (08:01 +0000)
committerIngo Renner <ingo.renner@typo3.org>
Mon, 26 May 2008 08:01:37 +0000 (08:01 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@3721 709f56b5-9817-0410-a4d7-c38de5d9e867

typo3/sysext/cms/tslib/class.tslib_pibase.php

index bb67974..e2488b0 100755 (executable)
@@ -1162,18 +1162,23 @@ class tslib_pibase {
         * @param       integer         $recursive is an integer >=0 telling how deep to dig for pids under each entry in $pid_list
         * @return      string          List of PID values (comma separated)
         */
-       function pi_getPidList($pid_list,$recursive=0)  {
-               if (!strcmp($pid_list,''))      $pid_list = $GLOBALS['TSFE']->id;
-               $recursive = t3lib_div::intInRange($recursive,0);
-
-               $pid_list_arr = array_unique(t3lib_div::trimExplode(',',$pid_list,1));
-               $pid_list = array();
-
-               foreach($pid_list_arr as $val)  {
-                       $val = t3lib_div::intInRange($val,0);
-                       if ($val)       {
-                               $_list = $this->cObj->getTreeList(-1*$val, $recursive);
-                               if ($_list)             $pid_list[] = $_list;
+       function pi_getPidList($pid_list, $recursive = 0) {
+               if (!strcmp($pid_list, '')) {
+                       $pid_list = $GLOBALS['TSFE']->id;
+               }
+
+               $recursive = t3lib_div::intInRange($recursive, 0);
+
+               $pid_list_arr = array_unique(t3lib_div::trimExplode(',', $pid_list, 1));
+               $pid_list     = array();
+
+               foreach($pid_list_arr as $val) {
+                       $val = t3lib_div::intInRange($val, 0);
+                       if ($val) {
+                               $_list = $this->cObj->getTreeList(-1 * $val, $recursive);
+                               if ($_list) {
+                                       $pid_list[] = $_list;
+                               }
                        }
                }