Cleanup: Fixed formatting issues in t3lib PHP files
authorOliver Hader <oliver.hader@typo3.org>
Sat, 23 May 2009 14:40:33 +0000 (14:40 +0000)
committerOliver Hader <oliver.hader@typo3.org>
Sat, 23 May 2009 14:40:33 +0000 (14:40 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@5487 709f56b5-9817-0410-a4d7-c38de5d9e867

20 files changed:
ChangeLog
t3lib/class.gzip_encode.php
t3lib/class.t3lib_bedisplaylog.php
t3lib/class.t3lib_befunc.php
t3lib/class.t3lib_beuserauth.php
t3lib/class.t3lib_cs.php
t3lib/class.t3lib_extfilefunc.php
t3lib/class.t3lib_extmgm.php
t3lib/class.t3lib_flexformtools.php
t3lib/class.t3lib_frontendedit.php
t3lib/class.t3lib_htmlmail.php
t3lib/class.t3lib_iconworks.php
t3lib/class.t3lib_page.php
t3lib/class.t3lib_querygenerator.php
t3lib/class.t3lib_stdgraphic.php
t3lib/class.t3lib_superadmin.php
t3lib/class.t3lib_tceforms.php
t3lib/class.t3lib_userauth.php
t3lib/class.t3lib_userauthgroup.php
t3lib/stddb/tbl_be.php

index e310762..d44bd3e 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,7 @@
 2009-05-23  Oliver Hader  <oliver@typo3.org>
 
        * Follow-up to #10597: Faulty call to frontend editing instance instead of admin panel
+       * Cleanup: Fixed formatting issues in t3lib PHP files
 
 2009-05-22  Steffen Kamper  <info@sk-typo3.de>
 
index f4d3c1a..51c3f53 100644 (file)
@@ -193,15 +193,15 @@ class gzip_encode {
         */
        function gzip_encode($level=3, $debug=false, $outputCompressedSizes=false) {
                if (!function_exists('gzcompress')) {
-                   trigger_error('gzcompress not found, ' .
-                           'zlib needs to be installed for gzip_encode',
-                           E_USER_WARNING);
-                   return;
+                       trigger_error('gzcompress not found, ' .
+                               'zlib needs to be installed for gzip_encode',
+                               E_USER_WARNING);
+                       return;
                }
                if (!function_exists('crc32')) {
-                   trigger_error('crc32() not found, ' .
-                           'PHP >= 4.0.1 needed for gzip_encode', E_USER_WARNING);
-                   return;
+                       trigger_error('crc32() not found, ' .
+                               'PHP >= 4.0.1 needed for gzip_encode', E_USER_WARNING);
+                       return;
                }
                if (headers_sent()) return;
                if (connection_status() !== 0) return;
@@ -210,7 +210,7 @@ class gzip_encode {
                $this->encoding = $encoding;
 
                if (strtolower($level) == 'true' || $level === true) {
-                   $level = $this->get_complevel();
+                       $level = $this->get_complevel();
                }
                $this->level = $level;
 
@@ -237,7 +237,7 @@ class gzip_encode {
                $this->gzsize = strlen($gzdata);
 
                if ($debug) {
-                   return;
+                       return;
                }
 
                ob_end_clean();
@@ -277,24 +277,24 @@ class gzip_encode {
                        // Test file type. I wish I could get HTTP response headers.
                $magic = substr(ob_get_contents(),0,4);
                if (substr($magic,0,2) === '^_') {
-                   // gzip data
-                   $encoding = false;
+                       // gzip data
+                       $encoding = false;
                } else if (substr($magic,0,3) === 'GIF') {
-                   // gif images
-                   $encoding = false;
+                       // gif images
+                       $encoding = false;
                } else if (substr($magic,0,2) === "\xFF\xD8") {
-                   // jpeg images
-                   $encoding = false;
+                       // jpeg images
+                       $encoding = false;
                } else if (substr($magic,0,4) === "\x89PNG") {
-                   // png images
-                   $encoding = false;
+                       // png images
+                       $encoding = false;
                } else if (substr($magic,0,3) === 'FWS') {
-                   // Don't gzip Shockwave Flash files. Flash on windows incorrectly
-                   // claims it accepts gzip'd content.
-                   $encoding = false;
+                       // Don't gzip Shockwave Flash files. Flash on windows incorrectly
+                       // claims it accepts gzip'd content.
+                       $encoding = false;
                } else if (substr($magic,0,2) === 'PK') {
-                   // pk zip file
-                   $encoding = false;
+                       // pk zip file
+                       $encoding = false;
                }
 
                return $encoding;
@@ -313,18 +313,18 @@ class gzip_encode {
         *
         * @return      integer         Suggests a level of compression (0..9) for the current situation
         */
-    function get_complevel() {
+       function get_complevel() {
                $uname = posix_uname();
                switch ($uname['sysname']) {
-                   case 'Linux':
+                       case 'Linux':
                                $cl = (1 - $this->linux_loadavg()) * 10;
                                $level = (int)max(min(9, $cl), 0);
                        break;
-                   case 'FreeBSD':
+                       case 'FreeBSD':
                                $cl = (1 - $this->freebsd_loadavg()) * 10;
                                $level = (int)max(min(9, $cl), 0);
                                break;
-                           default:
+                               default:
                                $level = 3;
                        break;
                }
index 1163613..f199ec3 100644 (file)
@@ -123,7 +123,7 @@ class t3lib_BEDisplayLog {
        function getTimeLabel($code)    {
                #$t=$GLOBALS['SOBE']->doc->formatTime($code,1);
                $t = date('H:i:s',$code);
-               
+
                if ($this->lastTimeLabel!=$t)   {
                        $this->lastTimeLabel=$t;
                        return $t;
index 1b6c01b..516d047 100644 (file)
@@ -2067,7 +2067,7 @@ final class t3lib_BEfunc {
        public static function getProcessedValue($table, $col, $value, $fixed_lgd_chars = 0, $defaultPassthrough = 0, $noRecordLookup = FALSE, $uid = 0, $forceResult = TRUE) {
                global $TCA;
                global $TYPO3_CONF_VARS;
-               
+
                if ($col == 'uid') {
                                // no need to load TCA as uid is not in TCA-array
                        return $value;
@@ -2543,18 +2543,18 @@ final class t3lib_BEfunc {
                                }
                        }
                        $preUrl = $preUrl_temp ? (t3lib_div::getIndpEnv('TYPO3_SSL') ? 'https://' : 'http://').$preUrl_temp : $backPath.'..';
-                       
+
                                // Look if a fixed preview language should be added:
                        $viewLanguageOrder = $GLOBALS['BE_USER']->getTSConfigVal('options.view.languageOrder');
                        if (strlen($viewLanguageOrder)) {
                                $suffix = '';
-                       
+
                                        // Find allowed languages (if none, all are allowed!)
                                if (!$GLOBALS['BE_USER']->user['admin'] &&
                                        strlen($GLOBALS['BE_USER']->groupData['allowed_languages'])) {
                                        $allowed_languages = array_flip(explode(',', $GLOBALS['BE_USER']->groupData['allowed_languages']));
                                }
-                       
+
                                        // Traverse the view order, match first occurence:
                                $lOrder = t3lib_div::intExplode(',',$viewLanguageOrder);
                                foreach($lOrder as $langUid)    {
@@ -2568,11 +2568,11 @@ final class t3lib_BEfunc {
                                                break;
                                        }
                                }
-                       
+
                                        // Add it:
                                $addGetVars.= $suffix;
                        }
-                       
+
                        $urlPreviewEnabled  = $preUrl . $viewScriptPreviewEnabled . $id . $addGetVars . $anchor;
                        $urlPreviewDisabled = $preUrl . $viewScriptPreviewDisabled . $id . $addGetVars . $anchor;
                }
@@ -3524,7 +3524,7 @@ final class t3lib_BEfunc {
                        while($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res))       {
                                $outputRows[] = $row;
                        }
-                       
+
                        $GLOBALS['TYPO3_DB']->sql_free_result($res);
 
                                // Set real-pid:
index f8af98e..a15ee0f 100644 (file)
@@ -368,14 +368,14 @@ class t3lib_beUserAuth extends t3lib_userAuthGroup {
 
 
        /**
-        * The session_id is used to find user in the database. 
+        * The session_id is used to find user in the database.
         * Two tables are joined: The session-table with user_id of the session and the usertable with its primary key
         * if the client is flash (e.g. from a flash application inside TYPO3 that does a server request)
         * then don't evaluate with the hashLockClause, as the client/browser is included in this hash
         * and thus, the flash request would be rejected
         *
         * @return DB result object or false on error
-        * @access private 
+        * @access private
         */
        protected function fetchUserSessionFromDB() {
                if ($GLOBALS['CLIENT']['BROWSER'] == 'flash') {
index 247a2f6..39a4039 100644 (file)
@@ -1743,7 +1743,7 @@ class t3lib_cs {
                        if ($i <= 0)    return ''; // sanity check
                        for ($bc=0, $mbs=ord($str{$i}); $mbs & 0x80; $mbs = $mbs << 1)  $bc++;  // calculate number of bytes
                        if ($bc+$i > $len)      return substr($str,0,$i);
-                        // fallthru: multibyte char fits into length
+                       // fallthru: multibyte char fits into length
                }
                return substr($str,0,$len);
        }
@@ -1958,11 +1958,12 @@ class t3lib_cs {
                }
                if (!strlen($str{$i}))  return $str;    // string shorter than supplied length
 
-               if ($i>$len)
+               if ($i>$len) {
                        return substr($str,0,$len-1);   // we ended on a first byte
-               else
+               } else {
                        return substr($str,0,$len);
-        }
+               }
+       }
 
        /**
         * Returns a part of a string in the EUC charset family.
index aadd08b..be8738c 100644 (file)
@@ -240,7 +240,7 @@ class t3lib_extFileFunctions extends t3lib_basicFileFunctions       {
 
                                        // Traverse all action data. More than one file might be affected at the same time.
                                if (is_array($actionData)) {
-                                   $result[$action] = array();
+                                       $result[$action] = array();
                                        foreach ($actionData as $cmdArr) {
 
                                                        // Clear file stats
index 5e49943..efcf1af 100644 (file)
@@ -526,7 +526,7 @@ final class t3lib_extMgm {
                        );
                                // Set reference for regular fields (no --div-- or --palette--):
                        if (!isset($structure['regularFields'][$itemDetails[0]]) && strpos($itemDetails[0], '--') === false) {
-                               $structure['regularFields'][$itemDetails[0]] =& $structure['orderedItems'][$index]; 
+                               $structure['regularFields'][$itemDetails[0]] =& $structure['orderedItems'][$index];
                        }
                }
 
index 2149e9f..0c5a875 100644 (file)
@@ -458,7 +458,7 @@ class t3lib_flexformtools {
                if ($GLOBALS['TYPO3_CONF_VARS']['BE']['flexformForceCDATA']) {
                        $this->flexArray2Xml_options['useCDATA'] = 1;
                }
-               
+
                $options = $GLOBALS['TYPO3_CONF_VARS']['BE']['niceFlexFormXMLtags'] ? $this->flexArray2Xml_options : array();
                $spaceInd = ($GLOBALS['TYPO3_CONF_VARS']['BE']['compactFlexFormXML'] ? -1 : 4);
                $output = t3lib_div::array2xml($array,'',0,'T3FlexForms', $spaceInd, $options);
index 9acc7d4..09da8e9 100644 (file)
@@ -220,7 +220,7 @@ class t3lib_frontendedit {
                        // Commands:
                list($table, $uid) = explode(':', $this->TSFE_EDIT['record']);
                $cmd = $this->TSFE_EDIT['cmd'];
-               
+
                        // Look for some TSFE_EDIT data that indicates we should save.
                if (($this->TSFE_EDIT['doSave'] || $this->TSFE_EDIT['update'] || $this->TSFE_EDIT['update_close']) && is_array($this->TSFE_EDIT['data'])) {
                        $cmd = 'save';
@@ -247,7 +247,7 @@ class t3lib_frontendedit {
                        }
                }
        }
-       
+
        /**
         * Hides a specific record.
         *
@@ -321,7 +321,7 @@ class t3lib_frontendedit {
         *
         * @param       string          The table name for the record to move.
         * @param       integer         The UID for the record to move.
-        * @param       string          The direction to move, either 'up' or 'down'. 
+        * @param       string          The direction to move, either 'up' or 'down'.
         * @param       integer         The UID of record to move after. This is specified for dragging only.
         * @return      void
         */
@@ -352,7 +352,7 @@ class t3lib_frontendedit {
                                        } else {
                                                $operator = '>';
                                                $order = 'ASC';
-                                       }                       
+                                       }
                                        $sortCheck = ' AND ' . $sortField . $operator . intval($row[$sortField]);
                                }
                                $res = $GLOBALS['TYPO3_DB']->exec_SELECTquery(
@@ -372,7 +372,7 @@ class t3lib_frontendedit {
                                        }
                                        elseif ($direction == 'down') {
                                                $cmdData[$table][$uid]['move'] = -$row2['uid'];
-                                       } 
+                                       }
                                        elseif ($row3 = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res)) {  // Must take the second record above...
                                                $cmdData[$table][$uid]['move'] = -$row3['uid'];
                                        }
@@ -427,7 +427,7 @@ class t3lib_frontendedit {
                        }
                }
        }
-       
+
        /**
         * Stub for closing a record. No real functionality needed since content
         * element rendering will take care of everything.
@@ -571,7 +571,7 @@ class t3lib_frontendedit {
                        // No extra JS includes needed
                return '';
        }
-               
+
        /**
         * Gets the hidden fields (array key=field name, value=field value) to be used in the edit panel for a particular content element.
         * In the normal case, no hidden fields are needed but special controllers such as TemplaVoila need to track flexform pointers, etc.
@@ -582,7 +582,7 @@ class t3lib_frontendedit {
        public function getHiddenFields(array $dataArray) {
                        // No special hidden fields needed.
                return array();
-       }       
+       }
 }
 
 if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['t3lib/class.t3lib_frontendedit.php']) {
index 16c0edc..73799f9 100644 (file)
@@ -483,17 +483,17 @@ class t3lib_htmlmail {
                                $this->add_header('From: '.$this->from_email);
                        }
                }
-               
+
                        // Cc
                if ($this->recipient_copy) {
                        $this->add_header('Cc: ' . $this->recipient_copy);
                }
-               
+
                        // Bcc
                if ($this->recipient_blindcopy) {
                        $this->add_header('Bcc: ' . $this->recipient_blindcopy);
                }
-               
+
                        // Reply
                if ($this->replyto_email) {
                        if ($this->replyto_name) {
index c732b10..c921520 100644 (file)
@@ -289,10 +289,10 @@ final class t3lib_iconWorks       {
                        $fExt = $GLOBALS['TBE_STYLES']['skinImgAutoCfg']['forceFileExtension'];
                        $scaleFactor = $GLOBALS['TBE_STYLES']['skinImgAutoCfg']['scaleFactor'] ? $GLOBALS['TBE_STYLES']['skinImgAutoCfg']['scaleFactor'] : 1;   // Scaling factor
                        $lookUpName = $fExt ? preg_replace('/\.[[:alnum:]]+$/', '', $srcKey).'.'.$fExt : $srcKey;       // Set filename to look for
-        
+
                        if ($fExt && !@is_file($GLOBALS['TBE_STYLES']['skinImgAutoCfg']['absDir'] . $lookUpName)) {
                                // fallback to original filename if icon with forced extension doesn't exists
-                               $lookUpName = $srcKey;  
+                               $lookUpName = $srcKey;
                        }
                                // If file is found:
                        if (@is_file($GLOBALS['TBE_STYLES']['skinImgAutoCfg']['absDir'].$lookUpName))   {       // If there is a file...
index 1e86cde..4804ac0 100644 (file)
@@ -469,7 +469,7 @@ class t3lib_pageSelect {
                                                'pages',
                                                $searchField . '=' . $searchUid .
                                                        $this->where_hid_del .
-                                                       $this->where_groupAccess . 
+                                                       $this->where_groupAccess .
                                                        ' ' . $addWhere
                                        );
                                        if (!$count) {
index c2a7527..d9ad269 100644 (file)
@@ -905,7 +905,7 @@ class t3lib_queryGenerator  {
                                        } else {
                                                $where_clause = 'uid';
                                                if (!$GLOBALS['SOBE']->MOD_SETTINGS['show_deleted'])    {
-                                                       $where_clause .= t3lib_BEfunc::deleteClause($from_table);
+                                                       $where_clause .= t3lib_BEfunc::deleteClause($from_table);
                                                }
                                        }
                                        $orderBy = 'uid';
index df30f0d..09ea63e 100644 (file)
@@ -1332,7 +1332,7 @@ class t3lib_stdGraphic    {
         *
         * @param       string          $text
         * @param       array           $conf
-        * @param       integer         
+        * @param       integer
         */
        protected function getRenderedTextWidth($text, $conf) {
                $bounds = $this->ImageTTFBBoxWrapper($conf['fontSize'], $conf['angle'], $conf['fontFile'], $this->recodeString($text), $conf['splitRendering.']);
@@ -2910,7 +2910,7 @@ class t3lib_stdGraphic    {
                        break;
                }
                if ($result) {
-                       t3lib_div::fixPermissions($theImage); 
+                       t3lib_div::fixPermissions($theImage);
                }
                return $result;
        }
index e7870e0..4509573 100644 (file)
@@ -222,8 +222,8 @@ class t3lib_superadmin {
                        case 'page':
 ?>
 <!DOCTYPE html
-     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
-     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+        PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 <html>
 <head>
        <style type="text/css">
@@ -254,8 +254,8 @@ class t3lib_superadmin {
        <title>TYPO3 Super Admin</title>
 </head>
 <frameset  cols="250,*">
-    <frame name="TSAmenu" src="superadmin.php?type=page&show=menu" marginwidth="10" marginheight="10" scrolling="auto" frameborder="0">
-    <frame name="TSApage" src="superadmin.php?type=page" marginwidth="10" marginheight="10" scrolling="auto" frameborder="0">
+       <frame name="TSAmenu" src="superadmin.php?type=page&show=menu" marginwidth="10" marginheight="10" scrolling="auto" frameborder="0">
+       <frame name="TSApage" src="superadmin.php?type=page" marginwidth="10" marginheight="10" scrolling="auto" frameborder="0">
 </frameset>
 </html>
 <?php
index 3decb10..9e9de87 100644 (file)
@@ -2338,7 +2338,7 @@ class t3lib_TCEforms      {
                        if (!is_array($editData))       {       // Must be XML parsing error...
                                $editData=array();
                        } elseif (!isset($editData['meta']) || !is_array($editData['meta']))    {
-                           $editData['meta'] = array();
+                               $editData['meta'] = array();
                        }
 
                                // Find the data structure if sheets are found:
@@ -2709,7 +2709,7 @@ class t3lib_TCEforms      {
                                                                        'label' => $this->sL(trim($value['TCEforms']['label'])),
                                                                        'config' => $value['TCEforms']['config'],
                                                                        'defaultExtras' => $value['TCEforms']['defaultExtras'],
-                                    'onChange' => $value['TCEforms']['onChange']
+                                                                       'onChange' => $value['TCEforms']['onChange']
                                                                );
                                                                if ($PA['_noEditDEF'] && $PA['_lang']==='lDEF') {
                                                                        $fakePA['fieldConf']['config'] = array(
@@ -2719,7 +2719,7 @@ class t3lib_TCEforms      {
                                                                }
 
                                                                if (
-                                    $fakePA['fieldConf']['onChange'] == 'reload' ||
+                                                                       $fakePA['fieldConf']['onChange'] == 'reload' ||
                                                                        ($GLOBALS['TCA'][$table]['ctrl']['type'] && !strcmp($key,$GLOBALS['TCA'][$table]['ctrl']['type'])) ||
                                                                        ($GLOBALS['TCA'][$table]['ctrl']['requestUpdate'] && t3lib_div::inList($GLOBALS['TCA'][$table]['ctrl']['requestUpdate'],$key))) {
                                                                        if ($GLOBALS['BE_USER']->jsConfirmation(1))     {
@@ -5160,29 +5160,29 @@ class t3lib_TCEforms    {
                                        $(id+"-toggleClosed").value = 1;
                                }
 
-                           var previewContent = "";
-                           var children = $(id+"-content").getElementsByTagName("input");
-                           for (var i = 0, length = children.length; i < length; i++) {
+                               var previewContent = "";
+                               var children = $(id+"-content").getElementsByTagName("input");
+                               for (var i = 0, length = children.length; i < length; i++) {
                                        if (children[i].type=="text" && children[i].value)      previewContent+= (previewContent?" / ":"")+children[i].value;
-                           }
+                               }
                                if (previewContent.length>80)   {
                                        previewContent = previewContent.substring(0,67)+"...";
                                }
                                $(id+"-preview").update(previewContent);
                        }
                        function flexFormToggleSubs(id) {       // Toggling sub flexform elements on/off:
-                           var descendants = $(id).immediateDescendants();
+                               var descendants = $(id).immediateDescendants();
                                var isOpen=0;
                                var isClosed=0;
                                        // Traverse and find how many are open or closed:
-                           for (var i = 0, length = descendants.length; i < length; i++) {
+                               for (var i = 0, length = descendants.length; i < length; i++) {
                                        if (descendants[i].id)  {
                                                if (Element.visible(descendants[i].id+"-content"))      {isOpen++;} else {isClosed++;}
                                        }
-                           }
+                               }
 
                                        // Traverse and toggle
-                           for (var i = 0, length = descendants.length; i < length; i++) {
+                               for (var i = 0, length = descendants.length; i < length; i++) {
                                        if (descendants[i].id)  {
                                                if (isOpen!=0 && isClosed!=0)   {
                                                        if (Element.visible(descendants[i].id+"-content"))      {flexFormToggle(descendants[i].id);}
@@ -5190,7 +5190,7 @@ class t3lib_TCEforms      {
                                                        flexFormToggle(descendants[i].id);
                                                }
                                        }
-                           }
+                               }
                        }
                        function flexFormSortable(id)   {       // Create sortables for flexform sections
                                Position.includeScrollOffsets = true;
@@ -5199,14 +5199,14 @@ class t3lib_TCEforms    {
                                } });
                        }
                        function setActionStatus(id)    {       // Updates the "action"-status for a section. This is used to move and delete elements.
-                           var descendants = $(id).immediateDescendants();
+                               var descendants = $(id).immediateDescendants();
 
                                        // Traverse and find how many are open or closed:
-                           for (var i = 0, length = descendants.length; i < length; i++) {
+                               for (var i = 0, length = descendants.length; i < length; i++) {
                                        if (descendants[i].id)  {
                                                $(descendants[i].id+"-action").value = descendants[i].visible() ? i : "DELETE";
                                        }
-                           }
+                               }
                        }
 
                        TBE_EDITOR.images.req.src = "'.t3lib_iconWorks::skinImg($this->backPath,'gfx/required_h.gif','',1).'";
index 3bc2c1d..8a9a39c 100644 (file)
@@ -792,10 +792,10 @@ class t3lib_userAuth {
         *************************/
 
        /**
-        * The session_id is used to find user in the database. 
+        * The session_id is used to find user in the database.
         * Two tables are joined: The session-table with user_id of the session and the usertable with its primary key
         * @return DB result object or false on error
-        * @access private 
+        * @access private
         */
        protected function fetchUserSessionFromDB() {
                $dbres = $GLOBALS['TYPO3_DB']->exec_SELECTquery(
index 126aad3..18f4a0a 100644 (file)
@@ -1025,7 +1025,7 @@ class t3lib_userAuthGroup extends t3lib_userAuth {
         * @return      integer         File operation permission bitmask
         */
        public function getFileoperationPermissions() {
-               if ($this->isAdmin()) { 
+               if ($this->isAdmin()) {
                        return 31;
                } else {
                        return $this->groupData['fileoper_perms'];
@@ -1227,12 +1227,12 @@ class t3lib_userAuthGroup extends t3lib_userAuth {
 
                        // Hook for manipulation of the WHERE sql sentence which controls which BE-groups are included
                if (is_array ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_userauthgroup.php']['fetchGroupQuery'])) {
-                   foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_userauthgroup.php']['fetchGroupQuery'] as $classRef) {
+                       foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_userauthgroup.php']['fetchGroupQuery'] as $classRef) {
                        $hookObj = &t3lib_div::getUserObj($classRef);
                        if(method_exists($hookObj,'fetchGroupQuery_processQuery')){
-                           $whereSQL = $hookObj->fetchGroupQuery_processQuery($this, $grList, $idList, $whereSQL);
+                               $whereSQL = $hookObj->fetchGroupQuery_processQuery($this, $grList, $idList, $whereSQL);
+                       }
                        }
-                   }
                }
 
                $res = $GLOBALS['TYPO3_DB']->exec_SELECTquery('*', $this->usergroup_table, $whereSQL);
index d64bdfd..9f9c04d 100644 (file)
@@ -996,7 +996,7 @@ $TCA['sys_language'] = array(
                                'size' => 1,
                                'minitems' => 0,
                                'maxitems' => 1,
-               )
+                       )
                )
        ),
        'types' => array(