2008/10/8 Nico Edtinger <[EMAIL PROTECTED]>:

> The mail number starts with 1. You initialize the LimitIterator with 0
> instead of 1, which throws an exception (try $mail[0];). Seems like
> iterator_to_array() eats that exception.

That's right, new LimitIterator($mail, 1, 50); sorted that out.

> If you don't need an array, and I don't see a reason, I would also avoid
> converting the iterator to an array.

Nor do I. That was just for debugging purposes :)

Bartosz

Reply via email to