Commit 343645b3 authored by Penny Leach's avatar Penny Leach
Browse files

thinko! fixing activity_get_viewaccess_users

parent 80aefc41
......@@ -466,7 +466,10 @@ function activity_get_viewaccess_users($view, $owner) {
) AS userlist
JOIN ' . $prefix . 'usr u ON u.id = userlist.userid
LEFT JOIN ' . $prefix . 'usr_activity_preference p ON p.usr = u.id';
return get_records_sql_assoc($sql, array($owner, $owner, $owner, $view, $view)) || array();
if (!$u = get_records_sql_assoc($sql, array($owner, $owner, $owner, $view, $view))) {
$u = array();
}
return $u;
}
?>
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment