aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authormarijus <mario@mariovavti.com>2014-11-12 10:27:13 +0100
committermarijus <mario@mariovavti.com>2014-11-12 10:27:13 +0100
commit1ed144b83c3cefb685dfff37fd7d415bf5a2ffdb (patch)
treeeaa6d615f1206fa8a577e5080a6cb9232b62ef4d /mod
parentada2e43ea27feab8be956c01bf3ef13c8ce49049 (diff)
downloadvolse-hubzilla-1ed144b83c3cefb685dfff37fd7d415bf5a2ffdb.tar.gz
volse-hubzilla-1ed144b83c3cefb685dfff37fd7d415bf5a2ffdb.tar.bz2
volse-hubzilla-1ed144b83c3cefb685dfff37fd7d415bf5a2ffdb.zip
make search and advanced search use the same input form
Diffstat (limited to 'mod')
-rw-r--r--mod/directory.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/mod/directory.php b/mod/directory.php
index 256f7ca9a..d4a4c383a 100644
--- a/mod/directory.php
+++ b/mod/directory.php
@@ -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'] : '');