aboutsummaryrefslogtreecommitdiffstats
path: root/mod/display.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/display.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/display.php')
-rw-r--r--mod/display.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/mod/display.php b/mod/display.php
index b1ae54df3..110dd1807 100644
--- a/mod/display.php
+++ b/mod/display.php
@@ -59,7 +59,7 @@ function display_content(&$a, $update = 0, $load = false) {
$o .= '<div id="live-display"></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(
@@ -152,7 +152,7 @@ function display_content(&$a, $update = 0, $load = false) {
- $o .= conversation($a,$items,'display', $update, 'client');
+ $o .= conversation($a, $items, 'display', $update, 'client');
if($updateable) {
$x = q("UPDATE item SET item_flags = ( item_flags ^ %d )