Bug #17619 ยป 0006369.diff
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);
|
||
}
|
||
}
|
||
}
|
||
}
|