Remove array in function for 2.6 support

Signed-off-by: Ken Barber <ken@bob.sh>