active-directory-b2c-wordpress-plugin-openidconnect icon indicating copy to clipboard operation
active-directory-b2c-wordpress-plugin-openidconnect copied to clipboard

Fix error with $decoded_response being an uncountable type

Open BillyPurvis opened this issue 5 years ago • 0 comments

$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.

BillyPurvis avatar May 03 '19 13:05 BillyPurvis