Skip to content

Prevent "Notice: Undefined index" - #85

Merged
irazasyed merged 1 commit into
irazasyed:masterfrom
autowp:patch-1
Dec 23, 2015
Merged

irazasyed merged 1 commit into
irazasyed:masterfrom
autowp:patch-1

Conversation

@autowp

@autowp autowp commented Dec 22, 2015

Copy link
Copy Markdown
Contributor

... and following "Warning: Invalid argument supplied for foreach()"

... and following "Warning:  Invalid argument supplied for foreach()"
@jonnywilliamson

Copy link
Copy Markdown
Contributor

When was this happening?

@autowp

autowp commented Dec 23, 2015

Copy link
Copy Markdown
Contributor Author

For example

$telegram = new Api('123'); // any wrong formatted token
$telegram->getUpdates();
Notice: Undefined index: result in .../vendor/irazasyed/telegram-bot-sdk/src/Api.php on line 743
Warning: Invalid argument supplied for foreach() in .../vendor/irazasyed/telegram-bot-sdk/src/Api.php on line 743

irazasyed added a commit that referenced this pull request Dec 23, 2015
Check Result is set in Updates.
@irazasyed
irazasyed merged commit d4091c8 into irazasyed:master Dec 23, 2015
@irazasyed

Copy link
Copy Markdown
Owner

@autowp Thanks!

@autowp
autowp deleted the patch-1 branch December 23, 2015 11:35
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.

3 participants