Fixed warning for passing by reference to function

cusued by using reset(explode($foo, $bar))