Ad
  • Custom User Avatar

    As usual, that happens when you modify the input array.

    I just fiddled with your code a bit and the array is changed after running your function.