Closed (fixed)
Project:
Feeds Role ID Map
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
16 Sep 2014 at 17:12 UTC
Updated:
29 Dec 2014 at 11:54 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
krisahil commentedComment #2
btopro commentedlooks legit and logic is sound. I'll put it in the queue to be tested.
Comment #3
btopro commentedThis patch while fixing this issue can cause an additional logic issue. http://php.net/manual/en/function.array-search.php indicates that if it doesn't find anything it returns FALSE. This current function doesn't assert that the position is actually 0 / first element in the array instead of FALSE.
would be a more appropriate solution. Neither has been tested though so please reroll a patch using this approach and if it works for you I'll apply it to dev
Comment #4
krisahil commented@btopro,
See latest patch. I addressed that issue, and fixed same problem when a single value is supplied.
Also fixed a coding style issue for elseif() construction.
Thanks for the advice!
Comment #5
btopro commentedLooks much better thank you for following up on the change! Applying now.
Comment #7
btopro commented