Project

General

Profile

Bug #21590 ยป 12639.diff

Administrator Admin, 2009-11-25 19:08

View differences:

t3lib/class.t3lib_refindex.php (working copy)
// Traverse all records in tables, including deleted records:
$allRecs = $TYPO3_DB->exec_SELECTgetRows('uid',$tableName,'1=1'); //.t3lib_BEfunc::deleteClause($tableName)
$uidList = array(0);
foreach ($allRecs as $recdat) {
$refIndexObj = t3lib_div::makeInstance('t3lib_refindex');
$result = $refIndexObj->updateRefIndexTable($tableName,$recdat['uid'],$testOnly);
$uidList[]= $recdat['uid'];
$recCount++;
if (count($allRecs)) {
foreach ($allRecs as $recdat) {
$refIndexObj = t3lib_div::makeInstance('t3lib_refindex');
$result = $refIndexObj->updateRefIndexTable($tableName,$recdat['uid'],$testOnly);
$uidList[]= $recdat['uid'];
$recCount++;
if ($result['addedNodes'] || $result['deletedNodes']) {
$Err = 'Record '.$tableName.':'.$recdat['uid'].' had '.$result['addedNodes'].' added indexes and '.$result['deletedNodes'].' deleted indexes';
$errors[]= $Err;
if ($cli_echo) echo $Err.chr(10);
#$errors[] = t3lib_div::view_array($result);
if ($result['addedNodes'] || $result['deletedNodes']) {
$Err = 'Record '.$tableName.':'.$recdat['uid'].' had '.$result['addedNodes'].' added indexes and '.$result['deletedNodes'].' deleted indexes';
$errors[]= $Err;
if ($cli_echo) echo $Err.chr(10);
#$errors[] = t3lib_div::view_array($result);
}
}
}
    (1-1/1)