Project

General

Profile

Actions

Bug #14480

closed

array_unique not being fed arrays

Added by Michael Cannon almost 20 years ago. Updated over 16 years ago.

Status:
Closed
Priority:
Should have
Category:
Indexed Search
Target version:
-
Start date:
2005-01-05
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

A recent production server began complaining that external files didn't have the keywords, description, or body fields in "function procesWordsInArrays($contentArr)".

I have to admit I quickly tried finding the original point of the problem, but ran out of time and setup the following hack at line 469 of indexed_search/class.indexer.php.

// MLC ensure keys are available
$defaultContentArray = array(
'title' => array()
, 'description' => array()
, 'keywords' => array()
, 'body' => array()
);
$contentArr     = array_merge( $defaultContentArray
, $contentArr
);

(issue imported from #M662)


Files

0000662-class.indexer.php.diff (650 Bytes) 0000662-class.indexer.php.diff Administrator Admin, 2005-02-10 10:16
Actions #1

Updated by Michael Stucki almost 20 years ago

I think the problem only occurs if no title is found.
See my patch which should fix the problem. Please give me a feedback if it works.

Actions #2

Updated by Michael Stucki about 19 years ago

It seems this has been fixed in 3.8.0.

Actions

Also available in: Atom PDF