The documentation about the function og_membership_save() (og.module file) says:

 * @return
 *   Failure to write a record will return FALSE. Otherwise SAVED_NEW or
 *   SAVED_UPDATED is returned depending on the operation performed.

However OgMembership->save() (og.membership.inc file) does not return anything so we can't check if the membership had been created or not. AFAIK the default Entity->class returns something.

Comments

Antoine Vigneau created an issue.