aboutsummaryrefslogtreecommitdiffstats
path: root/search.php
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2006-01-27 22:40:51 +0000
committerplegall <plg@piwigo.org>2006-01-27 22:40:51 +0000
commit61668e4cf7627f3f2d56d92c6e80ff72b38965fa (patch)
tree052c70867a98c6fb8a0e8d721c0e317e2e0d68ad /search.php
parenta8fd5ee6cf5cf061ed0ff789d6030290b3418be5 (diff)
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
Diffstat (limited to 'search.php')
-rw-r--r--search.php6
1 files changed, 5 insertions, 1 deletions
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',
);
}