php - Trying to get property of a non-object -


i thought had resolved error when added if block below, i'm still erroring out. line of code causing following errror:

fatal php error on line 95 of /xxxxx/getcontactvaluesosvc.php: trying property of non-object

line 95 if condition here:

if($contact->customfields->c->ask_again->lookupname){     $contactname=$contact->customfields->c->ask_again->lookupname; } 

anyone know why merely checking existence (what line should doing think) causing error im getting?


Comments

Popular posts from this blog

java - Andrioid studio start fail: Fatal error initializing 'null' -

android - Gradle sync Error:Configuration with name 'default' not found -

StringGrid issue in Delphi XE8 firemonkey mobile app -