Project

General

Profile

Bug #23857 ยป intvals.patch

Administrator Admin, 2010-10-28 07:57

View differences:

typo3/class.db_list_extra.inc (working copy)
* $tableName, will be >= 0
*/
protected function getReferenceCount($tableName, $uid) {
$uid = intval($uid);
if (!isset($this->referenceCount[$tableName][$uid])) {
$numberOfReferences = $GLOBALS['TYPO3_DB']->exec_SELECTcountRows(
'*',
......
'ref_table = ' . $GLOBALS['TYPO3_DB']->fullQuoteStr(
$tableName, 'sys_refindex'
) .
' AND ref_uid = ' . $uid .
' AND ref_uid = ' . intval($uid) .
' AND deleted = 0',
'',
'',
    (1-1/1)