Bug #23343 ยป 15338_v1.diff
typo3/sysext/sys_action/task/class.tx_sysaction_task.php (Arbeitskopie) | ||
---|---|---|
if (t3lib_extMgm::isLoaded('lowlevel')) {
|
||
$sql_query = unserialize($record['t2_data']);
|
||
if (is_array($sql_query) && strtoupper(substr(trim($sql_query['qSelect']), 0, 6)) == 'SELECT') {
|
||
if (!is_array($sql_query) ||
|
||
(is_array($sql_query) && strtoupper(substr(trim($sql_query['qSelect']), 0, 6)) === 'SELECT')
|
||
) {
|
||
$actionContent = '';
|
||
$fullsearch = t3lib_div::makeInstance("t3lib_fullsearch");
|
||
$fullsearch = t3lib_div::makeInstance('t3lib_fullsearch');
|
||
$fullsearch->formW = 40;
|
||
$fullsearch->noDownloadB = 1;
|
||
... | ... | |
$actionContent = $cP['content'];
|
||
// if the result is rendered as csv or xml, show a download link
|
||
if ($type == 'csv' || $type == 'xml' ) {
|
||
if ($type === 'csv' || $type === 'xml' ) {
|
||
$actionContent .= '<br /><br /><a href="' . t3lib_div::getIndpEnv('REQUEST_URI') . '&download_file=1"><strong>' . $GLOBALS['LANG']->getLL('action_download_file') . '</strong></a>';
|
||
}
|
||
} else {
|
||
$actionContent .= $GLOBALS['TYPO3_DB']->sql_error();
|
||
}
|
||
// Admin users are allowed to see and edit the query
|
||
// Admin users are allowed to see and edit the query
|
||
if ($GLOBALS['BE_USER']->isAdmin()) {
|
||
$actionContent .= '<hr /> ' . $fullsearch->tableWrap($sql_query['qSelect']);
|
||
$actionContent .= '<br /><a title="' . $GLOBALS['LANG']->getLL('action_editQuery') . '" href="' . $GLOBALS['BACK_PATH'] . t3lib_extMgm::extRelPath('lowlevel') . 'dbint/index.php?id=' .
|