Closed (fixed)
Project:
Content Taxonomy
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
29 Sep 2011 at 07:26 UTC
Updated:
4 Apr 2016 at 20:24 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
fgmSuggested patch fixes this.
Comment #2
DeFr commentedThe reset are nice and avoid a test; technically, they change the behavior, reset will return FALSE on an empty array instead of the NULL you get when accessing a key that doesn't exist. The token are only supposed to be used for string concatenation, so that shouldn't be all that important.
Could you reroll the pass initializing $vid to FALSE before before the foreach loop, which would allow to drop both the empty and isset check ? I could do it myself, but then I wouldn't be able to RTBC it...
Comment #3
DeFr commentedAttaching a new version of the patch with the suggested change.
Comment #4
adamdicarlo commentedPatch works for me.
Comment #6
damienmckennaCommitted. Thanks.