Issue Bug Closed

#14480array_unique not being fed arrays

Michael Cannon 01/05/05, 17:00 updated 06/27/08, 10:48

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)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.