I enabled the i18n and i18nprofile modules on a fresh drupal 5.1 install. I have no profile categories set up. So when creating a new user I receive the following warning:

warning: Invalid argument supplied for foreach() in /drupal-5.1/sites/default/modules/i18n/i18nprofile/i18nprofile.module on line 173

Fixed this problem by checking the return value of the profile_categories() function with the is_array() function. See the attached patch file

CommentFileSizeAuthor
i18nprofile_category.patch.txt665 bytesyaph

Comments

jose reyero’s picture

Status: Needs review » Fixed

This is fixed in dev, will be in the next release, thanks
http://drupal.org/node/128617

Anonymous’s picture

Status: Fixed » Closed (fixed)