aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Display.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2018-03-01 08:38:17 +0100
committerMario Vavti <mario@mariovavti.com>2018-03-01 08:38:17 +0100
commit844bef5070b071aa5ddf823036d2fe2285b40a7b (patch)
tree129a67cbed69c4ed6f286e9a0bf3770b9c82ffc6 /Zotlabs/Module/Display.php
parent97e329906e3cde0bacafcceb94780bedd44f1f32 (diff)
parent6210b7727f6c8542daaa62d1ed7f9ec1f74323f2 (diff)
downloadvolse-hubzilla-844bef5070b071aa5ddf823036d2fe2285b40a7b.tar.gz
volse-hubzilla-844bef5070b071aa5ddf823036d2fe2285b40a7b.tar.bz2
volse-hubzilla-844bef5070b071aa5ddf823036d2fe2285b40a7b.zip
Merge branch 'dev' into 3.2RC
Diffstat (limited to 'Zotlabs/Module/Display.php')
-rw-r--r--Zotlabs/Module/Display.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/Zotlabs/Module/Display.php b/Zotlabs/Module/Display.php
index 11dd0d174..8e8a1ed24 100644
--- a/Zotlabs/Module/Display.php
+++ b/Zotlabs/Module/Display.php
@@ -215,6 +215,7 @@ class Display extends \Zotlabs\Web\Controller {
$pager_sql = sprintf(" LIMIT %d OFFSET %d ", intval(\App::$pager['itemspage']),intval(\App::$pager['start']));
if($load || ($checkjs->disabled()) || ($module_format !== 'html')) {
+
$r = null;
require_once('include/channel.php');
@@ -235,7 +236,7 @@ class Display extends \Zotlabs\Web\Controller {
}
}
- if($r === null) {
+ if(! $r) {
// in case somebody turned off public access to sys channel content using permissions
// make that content unsearchable by ensuring the owner uid can't match
@@ -281,7 +282,7 @@ class Display extends \Zotlabs\Web\Controller {
}
}
- if($r === null) {
+ if(! $r) {
// 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'))