Skip to content
This repository has been archived by the owner on Dec 16, 2020. It is now read-only.

PHP Warning at line 1333 #185

Closed
KirovAir opened this issue Sep 5, 2015 · 1 comment
Closed

PHP Warning at line 1333 #185

KirovAir opened this issue Sep 5, 2015 · 1 comment

Comments

@KirovAir
Copy link

KirovAir commented Sep 5, 2015

Hi mgp25,

Not really a bug but some lines I see in my snapchat log:

PHP Notice:  Undefined property: stdClass::$is_shared_story in /var/www/snapapi/snapchat.php on line 1333

Fixed it by with changing line 1333 to:

if ((!is_array($friend->name)) && (isset($friend->is_shared_story) && $friend->is_shared_story != 0))

Not sure if this is a correct fix since PHP is not my main language.

Keep it up! I am learning a lot from this library btw, can't thank you enough. :)

@mgp25 mgp25 changed the title PHP Warning at line 3333 PHP Warning at line 1333 Sep 5, 2015
@mgp25
Copy link
Owner

mgp25 commented Sep 5, 2015

@KirovAir i'll check in a while, remember to quote the code and output (i already did for you)

Regards

@mgp25 mgp25 closed this as completed in 83ad00f Sep 6, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants