Doh! I misread the code.
In his non-array version he has:
$FullList=DirPlus($origen,$FileExt,1)

Then I saw $origen as an array and jumped to conclusions.

If memory serves, there was talk about a recursion problem. See kraborn's comment "If I try to run this function two time in a row I get this error on the second call".
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.