i'm getting this error when i create a PHP block to display ads
Notice: Undefined variable: module in adsense_display() (line 470 of modules/adsense/adsense.module).

the line in the .module file is
$ad = theme('adsense_ad', array('ad' => $ad, 'module' => $module));

any clues?
thanks

Comments

jcnventura’s picture

Comment #1

jcnventura
Primary language English
commented
Status: Active » Fixed

Thanks for the issue. I've corrected the problem in git. Please note that this error can only show up when you haven't enabled any ad-generation modules that are in the package. The module is useless without an ad-generation module.

Comment #2

Status: Fixed » Closed (fixed)

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