Needs review
Project:
SWF Tools
Version:
6.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
26 Oct 2010 at 12:46 UTC
Updated:
19 Feb 2011 at 23:39 UTC
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.
| Comment | File | Size | Author |
|---|---|---|---|
| swftools-6.x-3.x-1288096740.patch | 816 bytes | hswong3i |
Comments
Comment #1
Stuart Greenfield commentedI 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.