AzureAD / active-directory-b2c-wordpress-plugin-openidconnect

A plugin for WordPress that allows users to authenticate with Azure AD B2C using OpenID Connect.
MIT License
31 stars 28 forks source link

Fix error with $decoded_response being an uncountable type #29

Open BillyPurvis opened 5 years ago

BillyPurvis commented 5 years ago
$decoded_response = json_decode($response['body'], true);

Can return NULL. The following line tries to count a type (NULL) which isn't a countable type which in turn produces a warning message.

The proposed fix solves this.