aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-07-26 19:28:28 -0700
committerredmatrix <git@macgirvin.com>2016-07-26 19:28:28 -0700
commit80e433831430e9edc3829d2760551e03643cc598 (patch)
tree81bd309cc4bed71cb50e77c0b47a412de3f4b2d0
parentdb176eec409b73c290ee4d7580867e97dead41fb (diff)
downloadvolse-hubzilla-80e433831430e9edc3829d2760551e03643cc598.tar.gz
volse-hubzilla-80e433831430e9edc3829d2760551e03643cc598.tar.bz2
volse-hubzilla-80e433831430e9edc3829d2760551e03643cc598.zip
missing s
-rw-r--r--Zotlabs/Web/WebServer.php2
-rw-r--r--include/channel.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/Zotlabs/Web/WebServer.php b/Zotlabs/Web/WebServer.php
index d4f3cb9ea..5bb0e08e8 100644
--- a/Zotlabs/Web/WebServer.php
+++ b/Zotlabs/Web/WebServer.php
@@ -124,7 +124,7 @@ class WebServer {
// now that we've been through the module content, see if the page reported
// a permission problem and if so, a 403 response would seem to be in order.
- if(stristr(implode("", $_SESSION['sysmsg']), t('Permission denied'))) {
+ if(is_array($_SESSION['sysmsg']) && stristr(implode("", $_SESSION['sysmsg']), t('Permission denied'))) {
header($_SERVER['SERVER_PROTOCOL'] . ' 403 ' . t('Permission denied.'));
}
diff --git a/include/channel.php b/include/channel.php
index a5233743d..88dd818e6 100644
--- a/include/channel.php
+++ b/include/channel.php
@@ -1568,7 +1568,7 @@ function is_public_profile() {
return false;
$channel = App::get_channel();
if($channel) {
- $perm = \Zotlabs\Access\PermissionLimit::Get($channel['channel_id'],'view_profile');
+ $perm = \Zotlabs\Access\PermissionLimits::Get($channel['channel_id'],'view_profile');
if($perm == PERMS_PUBLIC)
return true;
}