Fixing PHP Notice: Undefined property: stdClass::,