summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
f54d1ef)
It doesn't make sense to render the table header in
the filelist module if no files are given.
Change-Id: I81870bca94e63643e3f27c90efa370b0a9964337
Resolves: #45579
Releases: 6.1
Reviewed-on: https://review.typo3.org/18362
Reviewed-by: Felix Kopp
Tested-by: Felix Kopp
Reviewed-by: Soren Malling
Tested-by: Soren Malling
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
$theData[$v] = $theT;
}
}
$theData[$v] = $theT;
}
}
- $out .= '<thead>' . $this->addelement(1, $levelUp, $theData, ' class="t3-row-header"', '') . '</thead>';
- $out .= '<tbody>' . $iOut . '</tbody>';
- // half line is drawn
- // finish
- $out = '
-
+ if (!empty($iOut)) {
+ $out .= '<thead>' . $this->addelement(1, $levelUp, $theData, ' class="t3-row-header"', '') . '</thead>';
+ $out .= '<tbody>' . $iOut . '</tbody>';
+ // half line is drawn
+ // finish
+ $out = '
<!--
File list table:
-->
<table cellpadding="0" cellspacing="0" id="typo3-filelist">
' . $out . '
</table>';
<!--
File list table:
-->
<table cellpadding="0" cellspacing="0" id="typo3-filelist">
' . $out . '
</table>';
} else {
/** @var $flashMessage \TYPO3\CMS\Core\Messaging\FlashMessage */
$flashMessage = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Messaging\\FlashMessage', $GLOBALS['LANG']->getLL('storageNotBrowsableMessage'), $GLOBALS['LANG']->getLL('storageNotBrowsableTitle'), \TYPO3\CMS\Core\Messaging\FlashMessage::INFO);
} else {
/** @var $flashMessage \TYPO3\CMS\Core\Messaging\FlashMessage */
$flashMessage = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Messaging\\FlashMessage', $GLOBALS['LANG']->getLL('storageNotBrowsableMessage'), $GLOBALS['LANG']->getLL('storageNotBrowsableTitle'), \TYPO3\CMS\Core\Messaging\FlashMessage::INFO);