git.gnu.io has moved to IP address 209.51.188.249 -- please double check where you are logging in.

Commit e502bba2 authored by Evan Prodromou's avatar Evan Prodromou

Slightly more robust group-membership conversion

parent 66f4a391
......@@ -161,8 +161,17 @@ class Group_member extends Managed_DataObject
function asActivity()
{
$member = $this->getMember();
if (!$member) {
throw new Exception("No such member: " . $this->profile_id);
}
$group = $this->getGroup();
if (!$group) {
throw new Exception("No such group: " . $this->group_id);
}
$act = new Activity();
$act->id = $this->getURI();
......
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