[TASK] Use external Core Project DBAL as Git submodule
[Packages/TYPO3.CMS.git] / typo3 / show_item.php
index e115e32..4268987 100644 (file)
@@ -99,8 +99,13 @@ class transferData extends t3lib_transferData        {
                $config = $GLOBALS['TCA'][$table]['columns'][$field]['config'];
                switch($config['type']) {
                        case 'input':
-                               if (isset($config['checkbox']) && $content==$config['checkbox'])        {$content=''; break;}
-                               if (t3lib_div::inList($config['eval'],'date'))  {$content = Date($GLOBALS['TYPO3_CONF_VARS']['SYS']['ddmmyy'],$content); }
+                               if (isset($config['checkbox']) && $content == $config['checkbox']) {
+                                       $content = '';
+                                       break;
+                               }
+                               if (t3lib_div::inList($config['eval'],'date')) {
+                                       $content = Date($GLOBALS['TYPO3_CONF_VARS']['SYS']['ddmmyy'], $content);
+                               }
                        break;
                        case 'group':
                        break;
@@ -224,7 +229,7 @@ class SC_show_item {
                        $returnLinkTag = $returnLink ? '<a href="' . $returnLink . '" class="typo3-goBack">' : '<a href="#" onclick="window.close();">';
 
                                // render type by user func
-                       $typeRendered = false;
+                       $typeRendered = FALSE;
                        if (is_array ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['typo3/show_item.php']['typeRendering'])) {
                                foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['typo3/show_item.php']['typeRendering'] as $classRef) {
                                        $typeRenderObj = t3lib_div::getUserObj($classRef);
@@ -325,7 +330,7 @@ class SC_show_item {
                $imgObj->mayScaleUp = 0;
                $imgObj->absPrefix = PATH_site;
 
-                       // Read Image Dimensions (returns false if file was not an image type, otherwise dimensions in an array)
+                       // Read Image Dimensions (returns FALSE if file was not an image type, otherwise dimensions in an array)
                $imgInfo = '';
                $imgInfo = $imgObj->getImageDimensions($this->file);