Marko-M / Inchoo_SocialConnect

SocialConnect Magento extension (login with Google, Facebook, Twitter or LinkedIn)
http://www.techytalk.info/magento/socialconnect/
Open Software License 3.0
139 stars 94 forks source link

Gender on Facebook #53

Closed nrebequi closed 8 years ago

nrebequi commented 8 years ago

When I test the component all the accounts that are created as "male". When I check the controller code Facebook I see this IF

             $ gender = $ info-> getGender ();              if (empty ($ gender)) {                  $ gender = null;              } Else if ($ gender = 'male') {                  $ gender = 1;              } Else if ($ gender = 'female') {                  $ gender = 2;              }

From what I could test $ info-> getGender () returns female / male, but always its saved like male. I guess when compared with = and not == error occurs.

Marko-M commented 8 years ago

Pull request by @az-iar merged, thanks!