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

Update hs-notice.php to fix 2 annoying notices under WP 4.2.x and later #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lorint
Copy link

@lorint lorint commented Aug 16, 2015

Fixes these two notices that appear under WordPress 4.2.x and later:

Notice: Undefined index: page in /Users/???/Sites/???/wp-content/plugins/hubspot/inc/hs-notice.php on line 20

Strict Standards: Non-static method WPHubspot::hs_is_customer() should not be called statically, assuming $this from incompatible context in /Users/???/Sites/???/wp-content/plugins/hubspot/inc/hs-notice.php on line 23

In the version of hs-notice that also has this line:

    if ( $_GET['page'] != 'hubspot_activate')

change it to:

    if (!empty($_GET['page']) && $_GET['page'] != 'hubspot_activate')

Cheers!

-Lorin

Fixes a notice that appears under WordPress 4.2.x and later.  In the version of hs-notice that also has this line:

        if ( $_GET['page'] != 'hubspot_activate')

change it to:

        if (!empty($_GET['page']) && $_GET['page'] != 'hubspot_activate')

Cheers!

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

Successfully merging this pull request may close these issues.

1 participant