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

fatal error on $this->_userType = $result->result->userType on tropo.class.php #47

Open
adsherpa opened this issue Mar 12, 2016 · 0 comments

Comments

@adsherpa
Copy link

Looks like on php 5.4 and above line $this->_userType = $result->result->userType; throws fatal error because $result->result->userType is not set at the time it is being assign to _userType and variable does not exist, this causes to stop application from continuing to respond with next statement.

I had to patch this library with below to make it work.
$this->_userType = isset($result->result->userType)?$result->result->userType : null;
I would like to see if you have new updates to this repo that will work with latest php version and also apply check for variables check to make sure they are defined and initialized for those that are required.

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

No branches or pull requests

1 participant