ErrorException [ Warning ]: Invalid argument supplied for foreach()

MODPATH/pois/classes/controller/frontend/pois.php [ 221 ]

216 					$pdf->MultiCell(110,10,__("email:").'       '.$this->no_data($categorie->email),10,100);
217 					$pdf->MultiCell(110,10,__("www:").'      '.$this->no_data($categorie->www),10,100);
218 					$pdf->MultiCell(110,10,__("Fax:").'         '.$this->no_data($categorie->fax),10,100);
219 					$amenities=$this->features_to_array($categorie, $key);
220 					$features='';
221 					foreach ($amenities as $amenitie)
222 						$features.=$amenitie.', ';
223 					$features = substr($features,0,strlen($features)-2).'.';
224 					$features = is_array($amenities)?$features:'brak danych';
225 					if($key!='attraction'){
226 						$pdf->MultiCell(0,2,'',10,100);
  1. MODPATH/pois/classes/controller/frontend/pois.php [ 221 ] » Kohana_Core::error_handler(arguments)

  2. {PHP internal call} » Controller_Frontend_Pois->action_pdf(arguments)

  3. SYSPATH/classes/kohana/request.php [ 1112 ] » ReflectionMethod->invokeArgs(arguments)

  4. APPPATH/bootstrap.php [ 304 ] » Kohana_Request->execute()

  5. DOCROOT/index.php [ 115 ] » require(arguments)

Environment