aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorM. Dent <dentm42@gmail.com>2019-02-19 01:23:28 +0100
committerM. Dent <dentm42@gmail.com>2019-02-19 01:23:28 +0100
commit136d50a7c59f8b38b8923940c0f1e556f1cdad6f (patch)
tree0cb09a32dd99a6ef4bc73981be08e1bb71e1cb57
parent0fa653d580d8862372c2a71fd6035d0cd1e83ceb (diff)
parent13ca56d38041c9da499bba54c1ebbaf98baa68cd (diff)
downloadvolse-hubzilla-136d50a7c59f8b38b8923940c0f1e556f1cdad6f.tar.gz
volse-hubzilla-136d50a7c59f8b38b8923940c0f1e556f1cdad6f.tar.bz2
volse-hubzilla-136d50a7c59f8b38b8923940c0f1e556f1cdad6f.zip
Merge branch 'mod_display_fixes' into 'dev'
if local_channel() and updating the page do not query for another item if the... See merge request hubzilla/core!1519
-rw-r--r--Zotlabs/Module/Display.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/Zotlabs/Module/Display.php b/Zotlabs/Module/Display.php
index e3691702d..04e5f9fce 100644
--- a/Zotlabs/Module/Display.php
+++ b/Zotlabs/Module/Display.php
@@ -178,8 +178,7 @@ class Display extends \Zotlabs\Web\Controller {
$static = ((array_key_exists('static',$_REQUEST)) ? intval($_REQUEST['static']) : 0);
-
-
+
$simple_update = (($update) ? " AND item_unseen = 1 " : '');
if($update && $_SESSION['loadtime'])
@@ -314,7 +313,7 @@ class Display extends \Zotlabs\Web\Controller {
}
}
- if(! $r) {
+ if($r === null) {
// in case somebody turned off public access to sys channel content using permissions
// make that content unsearchable by ensuring the owner_xchan can't match
if(! perm_is_allowed($sysid,$observer_hash,'view_stream'))