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

Error when have bad credentials #13

Open
nunorafaelrocha opened this issue Apr 18, 2013 · 1 comment
Open

Error when have bad credentials #13

nunorafaelrocha opened this issue Apr 18, 2013 · 1 comment

Comments

@nunorafaelrocha
Copy link

I found an error when authentication fails on nexmo.

The function "nexmoParse" parses every messages and sums the total cost like this:
$total_cost = $total_cost + (float)$msg->messageprice;

But when you have an authentication error the parser gives an error because "messageprice" is not defined.

I corrected myself by change the code to:
if (isset($msg->messageprice)) {
$total_cost = $total_cost + (float)$msg->messageprice;
}

@yemilgr
Copy link

yemilgr commented May 10, 2013

agree i had the same error 👍

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

2 participants