Commit 3c2a720b authored by mmn's avatar mmn

Found a remnant staticGet call

parent 6478034e
......@@ -979,12 +979,14 @@ class Notice extends Managed_DataObject
// Force the scope for private groups
foreach ($groups as $group_id) {
$group = User_group::staticGet('id', $group_id);
if ($group instanceof User_group) {
try {
$group = User_group::getByID($group_id);
if ($group->force_scope) {
$scope |= Notice::GROUP_SCOPE;
break;
}
} catch (Exception $e) {
common_log(LOG_ERR, 'Notice figureOutScope threw exception: '.$e->getMessage());
}
}
......
Markdown is supported
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