aboutsummaryrefslogtreecommitdiffstats
path: root/search.php
diff options
context:
space:
mode:
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',
);
}