Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3.2.16 throws errors if Error Log is empty #285

Closed
mostekcm opened this issue Feb 6, 2017 · 1 comment
Closed

3.2.16 throws errors if Error Log is empty #285

mostekcm opened this issue Feb 6, 2017 · 1 comment
Milestone

Comments

@mostekcm
Copy link
Contributor

mostekcm commented Feb 6, 2017

Two things need to be fixed for this.

  1. wp-content/plugins/auth0/lib/WP_Auth0_ErrorManager.php
    Add:
    $log = get_option('auth0_error_log', array());
    if (!is_array($log)) {
    $log = array();
    }

For some reason the $log is returning false instead of array().

  1. auth0/templates/auth0-error-log.php
    Add else condition after check for empty around the foreach. Same reason. Returning boolean instead of array when empty.
@mostekcm mostekcm self-assigned this Feb 6, 2017
@cocojoe
Copy link
Member

cocojoe commented Jun 30, 2017

@mostekcm this still relevant?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants