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

Undefined index: HTTP_ACCEPT #155

Closed
deshack opened this issue Jan 13, 2016 · 3 comments
Closed

Undefined index: HTTP_ACCEPT #155

deshack opened this issue Jan 13, 2016 · 3 comments
Labels
Milestone

Comments

@deshack
Copy link

deshack commented Jan 13, 2016

Utilizzando wp-cli dopo l'aggiornamento di WP dalla versione 4.3.1 alla 4.4.1 mi compare questo notice:

PHP Notice:  Undefined index: HTTP_ACCEPT in /var/www/wp-content/plugins/italy-cookie-choices/classes/class-italy-cookie-choices-front-end.php on line 267
@overclokk
Copy link
Contributor

Prova questa ( isset( $_SERVER['HTTP_ACCEPT'] ) && strpos( $_SERVER['HTTP_ACCEPT'],'html' ) !== false )

@deshack
Copy link
Author

deshack commented Jan 19, 2016

@overclokk appena posso ti faccio una PR ;)

@overclokk
Copy link
Contributor

@deshack Ottimo :-)

@overclokk overclokk added the bug label Jan 19, 2016
@overclokk overclokk added this to the Version 2.4.x milestone Jan 19, 2016
deshack pushed a commit to deshack/italy-cookie-choices that referenced this issue Jan 19, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants