The problem occurs when $q->param('next') returns a null of sorts because there is no such parameter in the URL. Apparently, this does not get passed.
This does sound like you're getting an empty list then. I'm not sure why that is. Maybe someone with more CGI knowledge will clear that up for us. I do believe the scalar will fix it though. Give it a shot.
James
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]