Changeset 7287 for branches/0.9/bb-includes/template-functions.php
- Timestamp:
- 01/09/2025 03:23:09 AM (8 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/0.9/bb-includes/template-functions.php
r7116 r7287 1438 1438 function get_user_type( $id = 0 ) { 1439 1439 if ( $user = bb_get_user( bb_get_user_id( $id ) ) ) : 1440 @$caps = array_keys($user->capabilities);1440 $caps = ! empty( $user->capabilities ) ? array_keys( $user->capabilities ) : []; 1441 1441 if ( !$caps ) 1442 1442 $caps[] = 'inactive';
Note: See TracChangeset
for help on using the changeset viewer.