diff options
Diffstat (limited to 'Zotlabs/Access')
-rw-r--r-- | Zotlabs/Access/PermissionLimits.php | 4 | ||||
-rw-r--r-- | Zotlabs/Access/PermissionRoles.php | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/Zotlabs/Access/PermissionLimits.php b/Zotlabs/Access/PermissionLimits.php index ddea919aa..907adaae2 100644 --- a/Zotlabs/Access/PermissionLimits.php +++ b/Zotlabs/Access/PermissionLimits.php @@ -11,7 +11,7 @@ class PermissionLimits { if($r) { if($r[0]['perm_limit'] != $perm_limit) { $x = q("update perm_limits set perm_limit = %d where id = %d", - dbesc($perm_limit) + dbesc($perm_limit), intval($r[0]['id']) ); } @@ -29,7 +29,7 @@ class PermissionLimits { static public function Get($channel_id,$perm = '') { if($perm) { $r = q("select * from perm_limits where channel_id = %d and perm = '%s' limit 1", - intval($channel_id) + intval($channel_id), dbesc($perm) ); if($r) diff --git a/Zotlabs/Access/PermissionRoles.php b/Zotlabs/Access/PermissionRoles.php index 32a72d3ae..e3b16a66c 100644 --- a/Zotlabs/Access/PermissionRoles.php +++ b/Zotlabs/Access/PermissionRoles.php @@ -7,8 +7,8 @@ use Zotlabs\Lib as Zlib; class PermissionRoles { - static private role_limits = array(); - static private role_perms = array(); + static private $role_limits = array(); + static private $role_perms = array(); static public function roles() { $roles = [ |