diff options
Diffstat (limited to '')
-rw-r--r-- | search.php | 6 |
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', ); } |