[lms] Re: Invalid argument supplied for foreach()