When running "drush up" + Drupal 6.19 + PHP5.3.2, swftools report with following error message:

WD php: Notice: Undefined index: profile in swftools_profiles_menu() (line 105 of swftools/profiles/swftools_profiles.module)

Apply additional isset() test can simply solve this problem. Patch via swftools-6.x-3.x-dev CVS.

CommentFileSizeAuthor
swftools-6.x-3.x-1288096740.patch816 byteshswong3i

Comments

Stuart Greenfield’s picture

Priority: Major » Normal

I think this has been fixed by a change to the swftools_get_methods() function. This initialises the key 'profile' as an empty array, so on the iteration in swftools_profile_menu() we can be sure that any method being report will have an empty array.

Tested locally against PHP 5.3 and no errors are thrown when the methods array is built.

Leaving at "needs review" as I think this is resolved. Will change to fixed when new release is made.