Changeset 689834
- Timestamp:
- 04/01/2013 06:23:40 AM (13 years ago)
- File:
-
- 1 edited
-
user-hierarchy/tags/0.1.1/lib/roles.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
user-hierarchy/tags/0.1.1/lib/roles.php
r689831 r689834 48 48 $role_access = get_option('jwuh_role_access', array()); 49 49 50 if (!is_array($role_access)) { 51 return false; 52 } 53 54 if (!isset($role_access[$currentuser_role])) { 50 if (!is_array($role_access) || !isset($role_access[$currentuser_role])) { 55 51 return false; 56 52 } … … 59 55 $role_access = $role_access[$currentuser_role]; 60 56 61 if (! $role_access['enabled']) {57 if (!is_array($role_access) || !$role_access['enabled']) { 62 58 return false; 63 59 } … … 145 141 $role_access = JWUH_Roles::get_role_access(); 146 142 147 if (!$role_access ) {148 return ;143 if (!$role_access || empty($role_access['roles'])) { 144 return array(); 149 145 } 150 146
Note: See TracChangeset
for help on using the changeset viewer.