The ad channel module produces this error:

warning: Creating default object from empty value in /var/www/drupal6/sites/all/modules/ad/channel/ad_channel.module on line 877.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

fizk’s picture

Here's a patch for 6.x-3.x.

Please apply to 6.x-2.x for the next 2.x release.

fizk’s picture

Status: Active » Needs review
SeanA’s picture

Version: 6.x-3.x-dev » 6.x-2.4
FileSize
921 bytes

This happens with strict error checking enabled (now the default in PHP 5.4), and it crops up in ad.module as well. The conditional test to check for null isn't needed, just using new stdClass() fixes the problem. Updated patch attached for 2.x branch.