make search and advanced search use the same input form

This commit is contained in:
marijus
2014-11-12 10:27:13 +01:00
parent ada2e43ea2
commit 1ed144b83c
3 changed files with 9 additions and 19 deletions

View File

@@ -42,7 +42,8 @@ function directory_content(&$a) {
else
$search = ((x($_GET,'search')) ? notags(trim(rawurldecode($_GET['search']))) : '');
$advanced = ((x($_REQUEST,'query')) ? notags(trim($_REQUEST['query'])) : '');
if(strpos($search,'=') && local_user() && get_pconfig(local_user(),'feature','expert'))
$advanced = $search;
$keywords = (($_GET['keywords']) ? $_GET['keywords'] : '');