From cf916141d0899483be7017eec115f2b8ab6ade70 Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Sun, 27 Dec 2015 13:01:24 +0100 Subject: [PATCH] Group membership URI needs dataobjects not IDs --- scripts/upgrade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/upgrade.php b/scripts/upgrade.php index cfdd260591..d2bc403b5e 100755 --- a/scripts/upgrade.php +++ b/scripts/upgrade.php @@ -359,7 +359,7 @@ function initGroupMemberURI() $mem->query(sprintf('update group_member set uri = "%s" '. 'where profile_id = %d ' . 'and group_id = %d ', - Group_member::newURI($mem->profile_id, $mem->group_id, $mem->created), + Group_member::newUri(Profile::getByID($mem->profile_id), User_group::getByID($mem->group_id), $mem->created), $mem->profile_id, $mem->group_id)); } catch (Exception $e) {