aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Access/PermissionLimits.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2018-04-23 11:52:32 +0200
committerMario Vavti <mario@mariovavti.com>2018-04-23 11:52:32 +0200
commit5bd1ea0b959494bb981335c992783b69f9a9de6d (patch)
treec5130ae2b01ca204cdc44370476fbfc2c49ca1d9 /Zotlabs/Access/PermissionLimits.php
parent689ced2ac007f086ba72151c94f4d4975e3ed9de (diff)
parent9ac67b44e42f433e34f60556e631b7573a83eb50 (diff)
downloadvolse-hubzilla-5bd1ea0b959494bb981335c992783b69f9a9de6d.tar.gz
volse-hubzilla-5bd1ea0b959494bb981335c992783b69f9a9de6d.tar.bz2
volse-hubzilla-5bd1ea0b959494bb981335c992783b69f9a9de6d.zip
Merge branch 'dev' into 3.4RC
Diffstat (limited to 'Zotlabs/Access/PermissionLimits.php')
-rw-r--r--Zotlabs/Access/PermissionLimits.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/Zotlabs/Access/PermissionLimits.php b/Zotlabs/Access/PermissionLimits.php
index 125d11b7b..b8ca3034c 100644
--- a/Zotlabs/Access/PermissionLimits.php
+++ b/Zotlabs/Access/PermissionLimits.php
@@ -72,13 +72,13 @@ class PermissionLimits {
* @param int $channel_id
* @param string $perm (optional)
* @return
- * * \b boolean false if no perm_limits set for this channel
- * * \b int if $perm is set, return one of PERMS_* constants for this permission
+ * * \b false if no perm_limits set for this channel
+ * * \b int if $perm is set, return one of PERMS_* constants for this permission, default 0
* * \b array with all permission limits, if $perm is not set
*/
static public function Get($channel_id, $perm = '') {
if($perm) {
- return PConfig::Get($channel_id, 'perm_limits', $perm);
+ return intval(PConfig::Get($channel_id, 'perm_limits', $perm));
}
PConfig::Load($channel_id);