Project

General

Profile

Bug #17619 ยป 0006369.diff

Administrator Admin, 2008-01-15 12:39

View differences:

class.indexer.php 2008-01-10 08:41:30.000000000 -0500
'baseword' => $key,
'metaphone' => $val['metaphone']
);
// A duplicate-key error will occur here if a word is NOT unset in the unset() line. However as long as the words in $wl are NOT longer as 60 chars (the baseword varchar is 60 characters...) this is not a problem.
$GLOBALS['TYPO3_DB']->exec_INSERTquery('index_words', $insertFields);
// If the key already exists, don't insert a new record.
$res = $GLOBALS['TYPO3_DB']->exec_SELECTquery('*', 'index_words', 'wid = \''.$val['hash'].'\'');
if($GLOBALS['TYPO3_DB']->sql_num_rows($res)==0) {
$GLOBALS['TYPO3_DB']->exec_INSERTquery('index_words', $insertFields);
}
}
}
}
    (1-1/1)