e107_handlers/search_class.php
Method parsesearch
has 8 arguments (exceeds 7 allowed). Consider refactoring. Open
Open
public function parsesearch($table, $return_fields, $search_fields, $weights, $handler, $no_results, $where, $order)
Variable $field_query
was undeclared, but array fields are being added to it. Open
Open
$field_query[] = "MATCH(".$field.") AGAINST ('".$this -> query."' IN BOOLEAN MODE)";
- Exclude checks
Variable $crop_fields
was undeclared, but array fields are being added to it. Open
Open
$crop_fields[] = preg_replace('/(.*?)\./', '', $field);
- Exclude checks
Argument 2 (needle)
is ' '
but \e_parse::ustrpos()
takes int
defined at /code/e107_handlers/e_parse_class.php:412
Open
Open
$this -> keywords['exact'][$k_key] = $tp->ustrpos($key, ' ') !== false;
- Exclude checks
Variable $ps
was undeclared, but array fields are being added to it. Open
Open
if ($ps['results'] = $sql->gen($sql_query))
- Exclude checks
Variable $output_array
was undeclared, but array fields are being added to it. Open
Open
$output_array['text'][] = "<li>".str_replace('{DETAILS}',"<span class='text-muted'>".$res['detail'].$display_rel."</span>", $output).$tp->toText($res['post_summary'])."</div></li>\n\n";
- Exclude checks
Variable $display_row
was undeclared, but array fields are being added to it. Open
Open
$display_row[] = $qrow[$i];
- Exclude checks
Variable $search_query
was undeclared, but array fields are being added to it. Open
Open
$search_query[] = "(". varset($weights[$field_key],0.6)." * (MATCH(".$field.") AGAINST ('".str_replace(" ","+",$this -> query)."' IN BOOLEAN MODE)))";
- Exclude checks
Variable $qrow
was undeclared, but array fields are being added to it. Open
Open
$qrow[$x][$r_key] = $r_value;
- Exclude checks
Variable $sortarr
was undeclared, but array fields are being added to it. Open
Open
$sortarr[] = $info['relevance'];
- Exclude checks
Argument 2 (start)
is float
but \e_parse::usubstr()
takes int
defined at /code/e107_handlers/e_parse_class.php:482
Open
Open
$this -> text = "...".$tp->usubstr($this -> text, ($this -> pos - round(($search_chars / 3))), $search_chars)."...";
- Exclude checks
Variable $display_row
was undeclared, but array fields are being added to it. Open
Open
$display_row[] = $row;
- Exclude checks
Reference to undeclared property \e_db->total_results
Open
Open
$ps['results'] = $sql->total_results; // db class reads result of SELECT FOUND_ROWS() for us
- Exclude checks
Variable $endweight
is undeclared Open
Open
else if (!$endweight)
- Exclude checks
Variable $exact_query
was undeclared, but array fields are being added to it. Open
Open
$exact_query[] = $query;
- Exclude checks
Argument 2 (needle)
is string
but \e_parse::ustrpos()
takes int
defined at /code/e107_handlers/e_parse_class.php:412
Open
Open
if ($tp->ustrpos($stopword_list, '|'.$key.'|') !== FALSE) {
- Exclude checks