Fix possible undefined warning with parsed site url #22

Merged
merged 1 commit into from Oct 18, 2012

Conversation

Projects
None yet
3 participants
Contributor

jeremyfelt commented Oct 18, 2012

If parse_url() does not return a path key, the check for the value of path can cause a warning in PHP.

Check to see that the path key exists before trying to compare it.

Fixes #21

Fix possible undefined warning with parsed site url
If parse_url() does not return a path key, the check for the value of path can cause a warning in PHP.

Check to see that the path key exists before trying to compare it.

@ghost ghost assigned danielbachhuber Oct 18, 2012

danielbachhuber added a commit that referenced this pull request Oct 18, 2012

Merge pull request #22 from jeremyfelt/fix-possible-undefined-path
Fix possible undefined warning with parsed site url. Closes #21

@danielbachhuber danielbachhuber merged commit ba6427d into tlovett1:master Oct 18, 2012

Contributor

danielbachhuber commented Oct 18, 2012

Thanks @jeremyfelt

Owner

tlovett1 commented Oct 19, 2012

Thanks Jeremy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment