Hi, I have created a default relationship and after saving it, I receive the following error.

Strict warning: Only variables should be passed by reference in user_relationship_defaults_add_form_submit() (line 167 of C:\_BACKUPS\DrupalCore7.12\drupal-7.12\sites\all\modules\user_relationships\user_relationship_defaults\user_relationship_defaults.module).

Please advise on next steps.



Simon Georges’s picture

Component:Code» Defaults

Changing component.

thirdender’s picture

array_shift is looking for a variable. The code still works as is, but the error can be avoided by saving the results of user_load_multiple to a variable, then passing that variable to array_shift.