Project

General

Profile

Bug #23112 ยป em-review-state.diff

Administrator Admin, 2010-07-06 20:07

View differences:

/var/www/html/trunk/typo3/mod/tools/em/class.em_xmlhandler.php (copie de travail)
function getReviewState($extKey, $version) {
$where = 'extkey='.$GLOBALS['TYPO3_DB']->fullQuoteStr($extKey, 'cache_extensions').' AND version='.$GLOBALS['TYPO3_DB']->fullQuoteStr($version, 'cache_extensions');
$res = $GLOBALS['TYPO3_DB']->exec_SELECTquery('reviewstate', 'cache_extensions', $where);
$rc = 0;
if ($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res)) {
return $row['reviewstate'];
$rc = $row['reviewstate'];
}
$GLOBALS['TYPO3_DB']->sql_free_result($res);
return 0;
return $rc;
}
/**
    (1-1/1)