Bug #23857 ยป intvals.patch
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',
|
||
'',
|
||
'',
|