I just discovered what might be an error or bug in the code. When viewing a user's content and he/she has not entered an Adsense publisher Id in the field created in the profile module, the following error surfaces

Notice: Undefined property: stdClass::$profile_google_adsense_client_id in revenue_sharing_basic_get_profile_client_id() (line 186 of /sites/all/modules/adsense/old/revenue_sharing_basic/revenue_sharing_basic.module).

How do i come to solve this error, it looks like we could use If statements when the field is empty. But can't find a way to imprement this. Can someone help?

Comments

jcnventura’s picture

Comment #1

jcnventura
Primary language English
commented
Status: Active » Fixed

I've committed a fix to git that should get rid of this error.

Comment #2

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.