Forums
-
- Forum
- Posts
-
- Installation
- 28,369
- Troubleshooting
- 62,148
- Themes
- 10,387
- Plugins
- 15,305
- Requests & Feedback
- 14,888
- Showcase
- 3,252
-
Looks like
$row = $bbdb->get_row(“
SELECT um.meta_value AS role
FROM $bbdb->users AS u, $bbdb->usermeta AS um
WHERE u.ID = um.user_id
AND um.meta_key = ‘bb_capabilities’
AND u.user_status = 0
AND u.ID = $user_id
“);
returns NULL
–
I temporarly fixed this by adding:
if(is_array($arr)) {
on line 177
and a closing bracket }
on line 186 just before return $is_mod
.
See also: WordPress.org • bbPress.org • BuddyPress.org • Matt • Blog RSS