changed parameter

This commit is contained in:
Cédric Salvador
2013-09-13 10:52:04 +02:00
parent b0e03462d3
commit fc136d0d06
17 changed files with 43 additions and 40 deletions

View File

@@ -4439,7 +4439,7 @@ if (! function_exists('getmypid'))
/**
* Natural search
* @param array[string] $fields array filled with the fields names in the SQL query
* @param mixed $fields string or array of strings filled with the fields names in the SQL query
* @param string $value the value to look for
* @return string $res the statement to append to the SQL query
* */
@@ -4448,6 +4448,9 @@ function natural_search($fields, $value)
global $db;
$crits = explode(' ', $value);
$res = "";
if (! is_array($fields)) {
$fields = array($fields);
}
$end = count($fields);
$end2 = count($crits);
$j = 0;