Compare to profile id of group, for backward compatibility

This commit is contained in:
Mikael Nordfeldth 2014-02-23 21:28:52 +01:00
parent 47fbe16562
commit 63102950b2

View File

@ -177,7 +177,7 @@ class EditgroupAction extends GroupAction
$nickname = Nickname::normalize($nickname, true);
} catch (NicknameTakenException $e) {
// Abort only if the nickname is occupied by _another_ group
if ($e->profile->id != $this->group->id) {
if ($e->profile->id != $this->group->profile_id) {
$this->showForm($e->getMessage());
return;
}