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
Comment #1
kleinmp commentedThanks for the heads up. I made the change and committed it.
Comment #2
bvirtual commentedSo, that was the right solution, then? Good. I'll get the new download. Thank you for the fast fix.