how can i solve this problem ?

how can i solve this problem ?

by Herman Renreng -
Number of replies: 2
Warning: Invalid argument supplied for foreach() in /var/www/html/moodle/mod/glossary/print.php on line 125

anyone please help me
Average of ratings: -
In reply to Herman Renreng

Re: how can i solve this problem ?

by Glenn Brown -

Here's the answer: I found it in another forum for a similar problem.

before the foreach statement add if ($students) like it is shown below

if ($students)
  foreach ($students as $student)