Corrected indentation.
authorIngmar Schlecht <ingmar.schlecht@typo3.org>
Sun, 3 Sep 2006 16:17:04 +0000 (16:17 +0000)
committerIngmar Schlecht <ingmar.schlecht@typo3.org>
Sun, 3 Sep 2006 16:17:04 +0000 (16:17 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@1719 709f56b5-9817-0410-a4d7-c38de5d9e867

t3lib/class.t3lib_befunc.php

index 3b92753..2f2e7d5 100755 (executable)
@@ -1862,23 +1862,23 @@ class t3lib_BEfunc      {
                                break;
                                case 'select':
                                        if ($theColConf['MM'])  {
-                                                       // Display the title of MM related records in lists
-                                                       if ($noRecordLookup)    {
-                                                               $MMfield = $theColConf['foreign_table'].'.uid';
-                                                       } else  {
-                                                               $MMfields = array($theColConf['foreign_table'].'.'.$TCA[$theColConf['foreign_table']]['ctrl']['label']);
-                                                               foreach (t3lib_div::trimExplode(',', $TCA[$theColConf['foreign_table']]['ctrl']['label_alt'], 1) as $f) {
-                                                                       $MMfields[] = $theColConf['foreign_table'].'.'.$f;
-                                                               }
-                                                               $MMfield = join(',',$MMfields);
+                                               // Display the title of MM related records in lists
+                                               if ($noRecordLookup)    {
+                                                       $MMfield = $theColConf['foreign_table'].'.uid';
+                                               } else  {
+                                                       $MMfields = array($theColConf['foreign_table'].'.'.$TCA[$theColConf['foreign_table']]['ctrl']['label']);
+                                                       foreach (t3lib_div::trimExplode(',', $TCA[$theColConf['foreign_table']]['ctrl']['label_alt'], 1) as $f) {
+                                                               $MMfields[] = $theColConf['foreign_table'].'.'.$f;
                                                        }
-                                                       $MMres = $GLOBALS['TYPO3_DB']->exec_SELECT_mm_query(
-                                                               $MMfield,
-                                                               ($table!=$theColConf['foreign_table']?$table:''),
-                                                               $theColConf['MM'],
-                                                               $theColConf['foreign_table'],
-                                                               'AND '.$theColConf['MM'].'.uid_local ='.intval($uid).t3lib_BEfunc::deleteClause($theColConf['foreign_table'])
-                                                       );
+                                                       $MMfield = join(',',$MMfields);
+                                               }
+                                               $MMres = $GLOBALS['TYPO3_DB']->exec_SELECT_mm_query(
+                                                       $MMfield,
+                                                       ($table!=$theColConf['foreign_table']?$table:''),
+                                                       $theColConf['MM'],
+                                                       $theColConf['foreign_table'],
+                                                       'AND '.$theColConf['MM'].'.uid_local ='.intval($uid).t3lib_BEfunc::deleteClause($theColConf['foreign_table'])
+                                               );
                                                if ($MMres) {
                                                        while($MMrow = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($MMres))   {
                                                                $mmlA[] = ($noRecordLookup?$MMrow['uid']:t3lib_BEfunc::getRecordTitle($theColConf['foreign_table'], $MMrow));