From: Mikael Nordfeldth Date: Sun, 27 Dec 2015 12:01:24 +0000 (+0100) Subject: Group membership URI needs dataobjects not IDs X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=cf916141d0899483be7017eec115f2b8ab6ade70;p=quix0rs-gnu-social.git Group membership URI needs dataobjects not IDs --- 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) {