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
| Comment | File | Size | Author |
|---|---|---|---|
| i18nprofile_category.patch.txt | 665 bytes | yaph |
Comments
Comment #1
jose reyero commentedThis is fixed in dev, will be in the next release, thanks
http://drupal.org/node/128617
Comment #2
(not verified) commented