ErrorException [ Notice ]: Trying to get property of non-object

FCPATH/application/modules/origin/controllers/origin.php [ 95 ]

 90 		$DB1->where( 'friendlyURLit', $nome );
 91 		$DB1->where( 'online', "si" );
 92 		$prodotto=$DB1->get( 'prodotti' )->row();
 93 
 94 
 95 		$DB1->where( 'idProdotto', $prodotto->idProdotto );
 96 		$DB1->order_by( 'ordine' );
 97 		$foto=$DB1->get( 'prodotti_foto' )->result();
 98 
 99 		$DB1->where( 'id', $pagina->id_lingua );
100 		$lingua=$DB1->get( 'lingua' )->row();
  1. FCPATH/application/modules/origin/controllers/origin.php [ 95 ] » MY_Exceptions::error_handler(arguments)

  2. {PHP internal call} » Origin->prodotto(arguments)

  3. FCPATH/system/core/CodeIgniter.php [ 356 ] » call_user_func_array(arguments)

  4. FCPATH/index.php [ 229 ] » require_once(arguments)

Environment

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

FCPATH/application/modules/origin/controllers/origin.php [ 103 ]

 98 
 99 		$DB1->where( 'id', $pagina->id_lingua );
100 		$lingua=$DB1->get( 'lingua' )->row();
101 
102 		// Rimuove dal prodotto remove_empty_tags_recursive
103 		foreach ($prodotto as $key => $value) {
104 			$prodotto->$key=$this->remove_empty_tags_recursive($value);
105 		}
106 
107 		// SISTEMAZIONI COMBO
108 		$options_sistemazione= explode( ',', $lingua->prodotti_prenota_sistemazione ) ;
  1. FCPATH/application/modules/origin/controllers/origin.php [ 103 ] » MY_Exceptions::error_handler(arguments)

  2. {PHP internal call} » Origin->prodotto(arguments)

  3. FCPATH/system/core/CodeIgniter.php [ 356 ] » call_user_func_array(arguments)

  4. FCPATH/index.php [ 229 ] » require_once(arguments)

Environment