sembrestels/Elgg — comment on commit 7052598ad9fe5836f0f3873710bbe2bc4b0f2e63
File:  line 0
By cash:

Thanks for working on this

1. We put a space between foreach and ( according to our coding standards
2. Shouldn't the relationship be added before the $e entity is disabled just in case a plugin wants to do something with the entity before it is disabled?