Using Drupal 6.10, PHP 5.2.9-p12-gentoo with Apache for
anonymous users to the front page of the web site (node/6 in
this case) the following error occurs on the front page:

warning: Invalid argument supplied for foreach() in /var/www/public/sites/all/modules/beautytips/beautytips.module on line 138.

I fixed it by adding "(array)" like so:

foreach ((array) $js_added['setting'] as $js_setting) {

Any logged in user gets no error.

Comments

kleinmp’s picture

Status: Active » Fixed

Thanks for the heads up. I made the change and committed it.

bvirtual’s picture

So, that was the right solution, then? Good. I'll get the new download. Thank you for the fast fix.

Status: Fixed » Closed (fixed)

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