Sometimes you get a notice when you are trying to login as a facebook user.
The problem is caused by the fboauth.fboauth.inc file, because it is called the array_shift php function, by taking an argument that is the result of the user_load_multiple function. Because of this, you get a notice.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 1451856-fboauth-simple-load-account-by-mail.patch | 698 bytes | dave reid |
| fboauth-notice-arg-by-reference.patch | 5.29 KB | hac441 |
Comments
Comment #1
wedge commentedPatch fixed this notice for me. Thanks!
Comment #2
dave reidI think this simpler patch should solve it as well.
Comment #3
quicksketchThanks, Dave! Though I think the && operator fires before the assignment operator, so I think we'd better wrap the second conditional in parathesis.
Comment #4
dave reidOnly if it's *not* the last condition. Otherwise it's totally fine. :)
Comment #5
quicksketchThanks committed!