Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Calling getExtraDetails when api_calls setting is empty at FacebookAuthController returnFromFb
Comment | File | Size | Author |
---|---|---|---|
#2 | social_auth_facebook-getextradetails-2924974-0.patch | 1.1 KB | shmel210 |
Comments
Comment #2
shmel210 CreditAttribution: shmel210 commentedComment #3
shmel210 CreditAttribution: shmel210 commentedComment #4
gvsoI understand why you think this should be changed, but I wonder whether we can do this with only one variable.
Something like.
$api_calls = $api_calls ? explode($api_calls) : [];
Furthermore, we should follow coding standards, so the spaces between the operators are required.
Comment #5
shmel210 CreditAttribution: shmel210 commentedBecause variable api_calls changes its type from string to array. Its probably not well.
Comment #7
gvsoCommitted with a small change (added spaces between the operators-operands)