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

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

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

html - jQuery UI Sortable - Remove placeholder after item is dropped -