From 61668e4cf7627f3f2d56d92c6e80ff72b38965fa Mon Sep 17 00:00:00 2001 From: plegall Date: Fri, 27 Jan 2006 22:40:51 +0000 Subject: Search engine redesign, second part : improvement: in category.php, an icon opening a popup display the list of search rules. modification: function get_search_array is responsible of search rules retrieving from database. This function is called from get_sql_search_clause and from search_rules.php modification: ability to search multiple authors. Warning: this version of search tool can't search author names including any blank space. git-svn-id: http://piwigo.org/svn/trunk@1015 68402e56-0260-453c-a942-63ccdbb3a9ee --- search.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'search.php') diff --git a/search.php b/search.php index 6567f3fa8..28796535d 100644 --- a/search.php +++ b/search.php @@ -64,7 +64,11 @@ if (isset($_POST['submit'])) if ($_POST['search_author']) { $search['fields']['author'] = array( - 'words' => array($_POST['search_author']), + 'words' => preg_split( + '/\s+/', + $_POST['search_author'] + ), + 'mode' => 'OR', ); } -- cgit v1.2.3