In line 67, it is possible that $folder is undefinded if the variable search_area isn't set and the if clause in line 62 is never entered. To prevent this, define $folder = array(); before it is first used, e. g. after line 57.
In line 171 the variable passed to public function isLowValueWord should be $searchTerm, not $word for the function to work.
In line 67, it is possible that
$folder
is undefinded if the variablesearch_area
isn't set and theif
clause in line 62 is never entered. To prevent this, define$folder = array();
before it is first used, e. g. after line 57.In line 171 the variable passed to public function
isLowValueWord
should be$searchTerm
, not$word
for the function to work.See revised version of plugin attached.
40-PicoSearch-revised.php.txt