[Warning] Invalid argument supplied for foreach()

GET /exhibitions/old-expo-2/

Line 39 in /home/galeriu/www/mysite/code/ExpoPage.php

Source

30 	}
31 
32 	public function ExhibitingArtists() {
33 		return $this->owner->getManyManyComponents('ExhibitingArtists')->sort('Title');
34 	}
35 
36   public function WorksListAsColumns() {
37     $columns = array(array(), array(), array());
38     $i = 0;
39     foreach ($this->WorksList() as $work) {
40       $column_index = $i % 3;
41       $columns[$column_index][] = $work;
42       $i++;
43     }
44 
45     $output = new ArrayList();

Trace

Canadian Post War Artists - Michel Bigué Art Gallery

Canadian Post War Artists