aboutsummaryrefslogtreecommitdiffstats
path: root/mod/search.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-06-18 02:06:16 -0700
committerfriendica <info@friendica.com>2013-06-18 02:06:16 -0700
commitc0cc494bf36a61885bc3391e6f05b48baafb312a (patch)
treeefc753e7b2e9d8b28e873dcc3fba4c22b68dd2cb /mod/search.php
parent5f84e3940d6a6ba8732104bf376921c061808f18 (diff)
downloadvolse-hubzilla-c0cc494bf36a61885bc3391e6f05b48baafb312a.tar.gz
volse-hubzilla-c0cc494bf36a61885bc3391e6f05b48baafb312a.tar.bz2
volse-hubzilla-c0cc494bf36a61885bc3391e6f05b48baafb312a.zip
fix mod-display when not logged in.
Diffstat (limited to 'mod/search.php')
-rw-r--r--mod/search.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/mod/search.php b/mod/search.php
index 4e093d865..3129e84b4 100644
--- a/mod/search.php
+++ b/mod/search.php
@@ -153,7 +153,7 @@ function search_content(&$a,$update = 0, $load = false) {
// because browser prefetching might change it on us. We have to deliver it with the page.
$o .= '<div id="live-search"></div>' . "\r\n";
- $o .= "<script> var profile_uid = " . intval(local_user())
+ $o .= "<script> var profile_uid = " . ((intval(local_user())) ? local_user() : (-1))
. "; var netargs = '?f='; var profile_page = " . $a->pager['page'] . "; </script>\r\n";
$a->page['htmlhead'] .= replace_macros(get_markup_template("build_query.tpl"),array(