function getUid($keyword)
{
$pidList = $this->pi_getPidList($this->conf["pidList"], $this->conf["recursive"]);
$keyword = $GLOBALS['TYPO3_DB']->fullQuoteStr($keyword,'tx_drwiki_pages');
// The newest version has the highest uid
$res = $GLOBALS['TYPO3_DB']->exec_SELECTquery('MAX(uid) AS uid','tx_drwiki_pages',
'tx_drwiki_pages.pid IN ('.$pidList.')'.$this->cObj->enableFields("tx_drwiki_pages").' AND keyword='.$keyword,
'','uid DESC','1');
$row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res);
return $row["uid"];
}
'','uid DESC','1'); muss in '','uid',''); geändert werden!
PS: Habs doch noch geschafft ;-) |