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

$_SESSION['_opauth_twitter'] not existing PHP error #22

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

xylesoft
Copy link

@xylesoft xylesoft commented Mar 4, 2015

There are some niche situations where $_SESSION['_opauth_twitter'] is undefined, in oauth_callback() it calls:

$session = $_SESSION['_opauth_twitter'];

If the session array key does not exist, it will throw a PHP error. This pull request adds a small test to see if the array key exists before attempting to execute the fragile code.

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